Don’t yet auto-bundle monorepo dependencies

This commit is contained in:
Eric Allam
2024-07-23 12:39:45 +01:00
parent ae9a8b0ceb
commit be3157ace7
2 changed files with 3 additions and 5 deletions
+2 -5
View File
@@ -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
),
+1
View File
@@ -484,6 +484,7 @@ function useDev({
bundleTriggerDevCore("workerFacade", config.tsconfigPath),
bundleDependenciesPlugin(
"workerFacade",
{},
(config.dependenciesToBundle ?? []).concat([/^@trigger.dev/]),
config.tsconfigPath
),