From ec7c8ebc2f4bc8cba8a6da77ed93e3e751fd389c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 12 Jul 2022 10:06:12 +0100 Subject: [PATCH] fix: call `rollup:before` before generating rollup config --- src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }