}),
...(!isDevelopmentBuild && {
file: './lib/index.js',
+ sourcemap: true,
plugins: [terser({ maxWorkers })]
})
},
}),
...(!isDevelopmentBuild && {
file: './lib/index.mjs',
+ sourcemap: true,
plugins: [terser({ maxWorkers })]
})
}
],
plugins: [
typescript({
- tsconfig: isDevelopmentBuild
- ? './tsconfig.development.json'
- : './tsconfig.production.json'
+ tsconfig: './tsconfig.build.json'
}),
del({
targets: ['./lib/*']