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/demo/rollup.config.js

19 lines
506 B
JavaScript
Raw Normal View History

2019-08-13 11:58:51 +08:00
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`,
2019-10-22 16:04:40 +08:00
sourcemap: true,
2019-08-13 11:58:51 +08:00
},
plugins: [
2019-11-11 16:56:39 +08:00
resolve({ mainFields: ["jsnext"] }),
2019-08-13 11:58:51 +08:00
commonjs()
],
external: ['reflect-metadata', 'doric'],
}
})