DemuMesDataV/build/rollup.config.js

23 lines
463 B
JavaScript
Raw Normal View History

2019-09-03 11:07:45 +08:00
import resolve from 'rollup-plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
export default {
input: 'build/entry.js',
2019-09-03 16:02:07 +08:00
// input: 'src/index.js',
2019-09-03 11:07:45 +08:00
output: {
format: 'umd',
file: 'dist/datav.map.js',
name: 'datav'
},
plugins: [
resolve(),
babel({
exclude: 'node_modules/**'
}),
commonjs(),
vue(),
],
external: ['Vue']
}