feat: enable externals.trace by default

This commit is contained in:
Pooya Parsa 2021-01-12 16:58:05 +01:00
parent 8a8840c970
commit 19e6542d27

View File

@ -44,7 +44,7 @@ export function externals (opts: NodeExternalsOptions): Plugin {
}
},
async buildEnd () {
if (opts.trace) {
if (opts.trace !== false) {
const { fileList } = await nodeFileTrace(Object.values(resolvedExternals), opts.traceOptions)
await Promise.all(fileList.map(async (file) => {
if (!file.startsWith('node_modules')) {