Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
{
input: './src/single-spa.js',
output: {
file: `./lib/system/single-spa${isProduction ? ".min" : ".dev"}.js`,
format: 'system',
sourcemap: true,
},
plugins: [
resolve(),
commonjs(),
babel({
exclude: 'node_modules/**'
}),
isProduction && (await import('rollup-plugin-terser')).terser(),
useAnalyzer && analyzer()
]
},
]))()
const rollUpConf = args => {
if (args['config-analyze']) {
plugins.push(
analyze({
showExports: true,
summaryOnly: true,
})
);
}
return {
input: 'src/index.ts',
output: [
{
file: pkg.main,
format: 'es',
exports: 'named',
sourcemap: true,
},
],
watch: {