mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 07:40:21 +00:00
fix: stabilize plugin startup boundaries
This commit is contained in:
@@ -173,10 +173,22 @@ describe("plugin-sdk root alias", () => {
|
||||
});
|
||||
|
||||
it.each([
|
||||
{
|
||||
name: "prefers source loading when the source root alias runs in development",
|
||||
options: {
|
||||
distExists: true,
|
||||
env: { NODE_ENV: "development" },
|
||||
monolithicExports: {
|
||||
slowHelper: (): string => "loaded",
|
||||
},
|
||||
},
|
||||
expectedTryNative: false,
|
||||
},
|
||||
{
|
||||
name: "prefers native loading when compat resolves to dist",
|
||||
options: {
|
||||
distExists: true,
|
||||
env: { NODE_ENV: "production" },
|
||||
monolithicExports: {
|
||||
slowHelper: (): string => "loaded",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user