mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
perf(nitro): externalize buildDir in development
TODO: supporting ignore patterns to include/exclude (rootDir but not buildDir)
This commit is contained in:
parent
b5c77b4c6b
commit
f8cb2586cf
@ -208,10 +208,14 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
||||
moduleDirectories,
|
||||
ignore: [
|
||||
nitroContext._internal.runtimeDir,
|
||||
...(nitroContext._nuxt.dev ? [] : [nitroContext._nuxt.buildDir]),
|
||||
...nitroContext.middleware.map(m => m.handle),
|
||||
...((!nitroContext._nuxt.dev && [
|
||||
// prod
|
||||
nitroContext._nuxt.srcDir,
|
||||
nitroContext._nuxt.rootDir,
|
||||
nitroContext._nuxt.serverDir
|
||||
nitroContext._nuxt.buildDir
|
||||
]) || []),
|
||||
nitroContext._nuxt.serverDir,
|
||||
...nitroContext.middleware.map(m => m.handle)
|
||||
],
|
||||
traceOptions: {
|
||||
base: nitroContext._nuxt.rootDir
|
||||
|
Loading…
Reference in New Issue
Block a user