chore(nitro): remove iife wrapper from worker presets

This commit is contained in:
Pooya Parsa 2021-04-28 18:20:30 +02:00
parent f0dfb42a58
commit b0b7879403

View File

@ -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'
}
}
} }