mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05: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)
|
addPluginTemplate(middlewareTemplate)
|
||||||
|
|
||||||
nuxt.hook('builder:prepared', async (builder) => {
|
nuxt.hook('builder:prepared', async (builder) => {
|
||||||
|
if (nuxt.options._prepare) { return }
|
||||||
builder.bundleBuilder.close()
|
builder.bundleBuilder.close()
|
||||||
delete builder.bundleBuilder
|
delete builder.bundleBuilder
|
||||||
const { ViteBuilder } = await import('./vite')
|
const { ViteBuilder } = await import('./vite')
|
||||||
|
Loading…
Reference in New Issue
Block a user