mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
27 lines
627 B
JavaScript
27 lines
627 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 [
|
||
|
// ESM
|
||
|
{
|
||
|
input: path.resolve(__dirname, '../packages/element-plus/index.ts'),
|
||
|
output: {
|
||
|
format: 'esm',
|
||
|
file: 'lib/library.esm.js',
|
||
|
},
|
||
|
plugins: [
|
||
|
terser(),
|
||
|
nodeResolve(),
|
||
|
commonjs(),
|
||
|
typescript(),
|
||
|
css(),
|
||
|
vue({ css: false }),
|
||
|
],
|
||
|
},
|
||
|
]
|