mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-25 07:08:58 +08:00
28 lines
737 B
JavaScript
28 lines
737 B
JavaScript
import { getBabelOutputPlugin } from '@rollup/plugin-babel';
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import postcss from 'rollup-plugin-postcss';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default {
|
|
input: 'index.js',
|
|
output:[
|
|
{
|
|
file: 'lib/index.js',
|
|
name: 'jsPreviewExcel',
|
|
format: 'es',
|
|
plugins: [getBabelOutputPlugin({ presets: ['@babel/preset-env'] })]
|
|
},
|
|
{
|
|
file: 'lib/index.umd.js',
|
|
name: 'jsPreviewExcel',
|
|
format: 'umd'
|
|
}
|
|
],
|
|
plugins: [
|
|
nodeResolve(),
|
|
commonjs(),
|
|
postcss(),
|
|
terser()
|
|
]
|
|
}; |