mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45:53 +00:00
feat: enable externals.trace by default
This commit is contained in:
parent
8a8840c970
commit
19e6542d27
@ -44,7 +44,7 @@ export function externals (opts: NodeExternalsOptions): Plugin {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async buildEnd () {
|
async buildEnd () {
|
||||||
if (opts.trace) {
|
if (opts.trace !== false) {
|
||||||
const { fileList } = await nodeFileTrace(Object.values(resolvedExternals), opts.traceOptions)
|
const { fileList } = await nodeFileTrace(Object.values(resolvedExternals), opts.traceOptions)
|
||||||
await Promise.all(fileList.map(async (file) => {
|
await Promise.all(fileList.map(async (file) => {
|
||||||
if (!file.startsWith('node_modules')) {
|
if (!file.startsWith('node_modules')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user