You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
471 B
JavaScript
22 lines
471 B
JavaScript
// rollup.config.js
|
|
|
|
import babel from 'rollup-plugin-babel';
|
|
import common from './rollup';
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
output: {
|
|
file: 'dist/index.js',
|
|
format: 'cjs',
|
|
// 如果不同时使用 export 与 export default 可打开legacy
|
|
// legacy: true,
|
|
banner: common.banner,
|
|
},
|
|
plugins: [
|
|
babel({
|
|
runtimeHelpers: true,
|
|
exclude: 'node_modules/**',
|
|
}),
|
|
],
|
|
};
|