mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
e8c162ea72
* fix(build): fix some export & import path * fix(build): build utils * fix: fix error import * fix(build): fix import error * fix(build): remove useless dependent * fix(build): fix build command error
33 lines
749 B
JavaScript
33 lines
749 B
JavaScript
import vue from 'rollup-plugin-vue'
|
|
import typescript from 'rollup-plugin-typescript2'
|
|
import css from 'rollup-plugin-css-only'
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import { terser } from 'rollup-plugin-terser'
|
|
import path from 'path'
|
|
|
|
export default [
|
|
{
|
|
input: path.resolve(__dirname, '../packages/element-plus/index.ts'),
|
|
output: {
|
|
format: 'es',
|
|
file: 'lib/index.esm.js',
|
|
},
|
|
plugins: [
|
|
terser(),
|
|
nodeResolve(),
|
|
commonjs(),
|
|
typescript({
|
|
abortOnError: false,
|
|
}),
|
|
css(),
|
|
vue({
|
|
target: 'browser',
|
|
css: false,
|
|
exposeFilename: false,
|
|
}),
|
|
],
|
|
external: ['vue'],
|
|
},
|
|
]
|