mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 02:44:51 +00:00
12 lines
261 B
TypeScript
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'
|
|
}
|
|
}
|
|
}
|