Skip to content

Commit

Permalink
fix: fix keepProcessEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 23, 2025
1 parent e09b8fc commit 8d899af
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion examples/browser-cli/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default defineConfig((_env) => ({
],
esbuildOptions: {
platform: "browser",
banner: undefined,
},
},
keepProcessEnv: false,
},
},
}));
1 change: 0 additions & 1 deletion examples/web-worker-rsc/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default defineConfig((_env) => ({
],
esbuildOptions: {
platform: "browser",
banner: undefined,
},
},
},
Expand Down
1 change: 0 additions & 1 deletion examples/web-worker/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default defineConfig((_env) => ({
],
esbuildOptions: {
platform: "browser",
banner: undefined,
},
},
build: {
Expand Down
2 changes: 0 additions & 2 deletions packages/workerd/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ export function vitePluginWorkerd(pluginOptions: WorkerdPluginOptions): Plugin {
workerd: {
keepProcessEnv: false,
optimizeDeps: {
// prevent `import { createRequire } from "node:module"`
esbuildOptions: {
platform: "browser",
banner: undefined,
},
},
dev: {
Expand Down

0 comments on commit 8d899af

Please sign in to comment.