This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-cli/contents/_rollup.config.js
2019-12-23 14:47:23 +08:00

19 lines
510 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({ jsnext: true, main: true }),
commonjs()
],
external: ['reflect-metadata', 'doric'],
}
})