Skip to content

Commit b97f7ee

Browse files
committed
build(vite): externalize ppef package in rollup config
add ppef to external modules list for both library and cli builds. prevents bundling of the linked ppef dependency during build.
1 parent 6de2ae4 commit b97f7ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default defineConfig({
3434
target: "node18",
3535
modulePreload: false,
3636
rollupOptions: {
37-
external: (id: string) => id.startsWith("node:"),
37+
external: (id: string) => id.startsWith("node:") || id.startsWith("ppef"),
3838
},
3939
}
4040
: {
@@ -60,6 +60,7 @@ export default defineConfig({
6060
// Externalize Node.js modules for browser compatibility
6161
external: (id: string) =>
6262
id.startsWith("node:") ||
63+
id.startsWith("ppef") ||
6364
id.includes("/experiments/evaluation/fixtures/") ||
6465
id.includes("/experiments/evaluation/loaders/"),
6566
},

0 commit comments

Comments
 (0)