diff --git a/src/build.ts b/src/build.ts index 9503b24463..689a68d0e6 100644 --- a/src/build.ts +++ b/src/build.ts @@ -35,8 +35,8 @@ export async function copyPublicAssets (nitro: Nitro) { } export async function build (nitro: Nitro) { - const rollupConfig = getRollupConfig(nitro) await nitro.hooks.callHook('rollup:before', nitro) + const rollupConfig = getRollupConfig(nitro) return nitro.options.dev ? _watch(nitro, rollupConfig) : _build(nitro, rollupConfig) }