Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Dec 3, 2024
1 parent 25733a4 commit 56e2e98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/vike-node/src/plugin/plugins/edgePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ export function edgePlugin(): Plugin[] {
}

return {
ssr: { target: 'webworker' },
ssr: {
target: 'webworker',
resolve: { conditions: DEFAULT_CONDITIONS }
},
build: {
rollupOptions: { external: [...builtinModules, /^node:/] },
target: 'es2022'
},
resolve: { conditions: DEFAULT_CONDITIONS }
}
}
},
configResolved(config) {
Expand Down

0 comments on commit 56e2e98

Please sign in to comment.