mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
33 lines
684 B
JavaScript
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'
|
|
]
|
|
}
|