Nuxt/packages/nitro/src/presets/worker.ts
2021-01-22 20:55:59 +01:00

12 lines
261 B
TypeScript

import { NitroPreset, NitroContext } from '../context'
export const worker: NitroPreset = {
entry: null, // Abstract
node: false,
hooks: {
'nitro:rollup:before' ({ rollupConfig }: NitroContext) {
rollupConfig.output.format = 'iife'
}
}
}