Skip to content

Commit

Permalink
fix(worker): preserve esmodule symbol for dynamic imports (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
20051231 committed Jul 27, 2022
1 parent c99f4a0 commit 0cd5121
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/presets/base-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export const baseWorker = defineNitroPreset({
noExternals: true,
rollupConfig: {
output: {
format: 'iife'
format: 'iife',
generatedCode: {
symbols: true
}
}
},
inlineDynamicImports: true // iffe does not support code-splitting
Expand Down

0 comments on commit 0cd5121

Please sign in to comment.