Skip to content

Commit

Permalink
chore: more conditions module
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 1, 2024
1 parent 97df938 commit 79519f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/vue-ssr-extra/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default defineConfig((_env) => ({
workerd: {
resolve: {
noExternal: true,
conditions: ["module"],
},
build: {
outDir: "dist/server",
Expand Down
1 change: 1 addition & 0 deletions examples/vue-ssr/vite.config.workerd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default defineConfig((_env) => ({
environments: {
workerd: {
resolve: {
conditions: ["module"],
noExternal: true,
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/workerd/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function vitePluginWorkerd(pluginOptions: WorkerdPluginOptions): Plugin {
return {
environments: {
workerd: {
keepProcessEnv: false,
optimizeDeps: {
// prevent `import { createRequire } from "node:module"`
esbuildOptions: {
Expand Down

0 comments on commit 79519f5

Please sign in to comment.