mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(bridge): don't instantiate vite builder if only preparing types (#3050)
This commit is contained in:
parent
fae2179ee9
commit
8edd4819c9
@ -45,6 +45,7 @@ export default defineNuxtModule<ViteOptions>({
|
||||
addPluginTemplate(middlewareTemplate)
|
||||
|
||||
nuxt.hook('builder:prepared', async (builder) => {
|
||||
if (nuxt.options._prepare) { return }
|
||||
builder.bundleBuilder.close()
|
||||
delete builder.bundleBuilder
|
||||
const { ViteBuilder } = await import('./vite')
|
||||
|
Loading…
Reference in New Issue
Block a user