23 lines
665 B
JavaScript
23 lines
665 B
JavaScript
import resolve from 'rollup-plugin-node-resolve'
|
|
import commonjs from 'rollup-plugin-commonjs'
|
|
import bundles from './build/index'
|
|
|
|
export default bundles.map(bundle => {
|
|
return {
|
|
input: `build/${bundle}.js`,
|
|
output: {
|
|
format: "cjs",
|
|
file: `bundle/${bundle}.js`,
|
|
sourcemap: true,
|
|
},
|
|
plugins: [
|
|
resolve({ mainFields: ["jsnext"] }),
|
|
commonjs()
|
|
],
|
|
external: ['reflect-metadata', 'doric'],
|
|
onwarn: function(warning) {
|
|
if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
|
|
console.warn( warning.message );
|
|
}
|
|
}
|
|
}) |