diff --git a/packages/cli-v3/src/commands/deploy.ts b/packages/cli-v3/src/commands/deploy.ts index ecafd4d71..a1a21bbaa 100644 --- a/packages/cli-v3/src/commands/deploy.ts +++ b/packages/cli-v3/src/commands/deploy.ts @@ -1170,9 +1170,6 @@ async function compileProject( ); } - const jsProject = new JavascriptProject(config.projectDir); - const directDependenciesMeta = await jsProject.extractDirectDependenciesMeta(); - const result = await build({ stdin: { contents: workerContents, @@ -1200,7 +1197,7 @@ async function compileProject( mockServerOnlyPlugin(), bundleDependenciesPlugin( "workerFacade", - directDependenciesMeta, + {}, config.dependenciesToBundle, config.tsconfigPath ), @@ -1257,7 +1254,7 @@ async function compileProject( plugins: [ bundleDependenciesPlugin( "entryPoint.ts", - directDependenciesMeta, + {}, config.dependenciesToBundle, config.tsconfigPath ), diff --git a/packages/cli-v3/src/commands/dev.tsx b/packages/cli-v3/src/commands/dev.tsx index 3957c81a8..11188c8dd 100644 --- a/packages/cli-v3/src/commands/dev.tsx +++ b/packages/cli-v3/src/commands/dev.tsx @@ -484,6 +484,7 @@ function useDev({ bundleTriggerDevCore("workerFacade", config.tsconfigPath), bundleDependenciesPlugin( "workerFacade", + {}, (config.dependenciesToBundle ?? []).concat([/^@trigger.dev/]), config.tsconfigPath ),