mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +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 = {
|
export const worker: NitroPreset = {
|
||||||
entry: null, // Abstract
|
entry: null, // Abstract
|
||||||
node: false,
|
node: false,
|
||||||
minify: true,
|
minify: true,
|
||||||
inlineDynamicImports: true, // iffe does not support code-splitting
|
inlineDynamicImports: true // iffe does not support code-splitting
|
||||||
hooks: {
|
|
||||||
'nitro:rollup:before' ({ rollupConfig }: NitroContext) {
|
|
||||||
rollupConfig.output.format = 'iife'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user