naive-ui/rollup.config.js
2019-12-30 13:15:14 +08:00

33 lines
684 B
JavaScript

const vue = require('rollup-plugin-vue')
const resolve = require('@rollup/plugin-node-resolve')
const strip = require('@rollup/plugin-strip')
const path = require('path')
const { terser } = require('rollup-plugin-terser')
module.exports = {
input: 'packages/common/Select/index.js',
output: {
format: 'esm',
file: 'lib/select/index.js'
},
plugins: [
vue(),
strip(),
resolve({
jail: path.resolve(__dirname, 'packages')
}),
terser({
mangle: false,
output: {
beautify: true,
indent_level: 2
}
})
],
external: [
'vue-runtime-helpers',
'lodash-es/cloneDeep',
'resize-observer-polyfill'
]
}