mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore(nitro): remove iife wrapper from worker presets
This commit is contained in:
parent
f0dfb42a58
commit
b0b7879403
@ -1,13 +1,8 @@
|
||||
import { NitroPreset, NitroContext } from '../context'
|
||||
import { NitroPreset } from '../context'
|
||||
|
||||
export const worker: NitroPreset = {
|
||||
entry: null, // Abstract
|
||||
node: false,
|
||||
minify: true,
|
||||
inlineDynamicImports: true, // iffe does not support code-splitting
|
||||
hooks: {
|
||||
'nitro:rollup:before' ({ rollupConfig }: NitroContext) {
|
||||
rollupConfig.output.format = 'iife'
|
||||
}
|
||||
}
|
||||
inlineDynamicImports: true // iffe does not support code-splitting
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user