ShadowEditor/ShadowEditor.UI/rollup.config.js
2019-05-06 20:28:31 +08:00

23 lines
514 B
JavaScript

import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
export default {
input: 'ShadowEditor.UI/src/index.js',
output: {
indent: '\t',
format: 'umd',
name: 'Shadow',
file: 'ShadowEditor.UI/build/ShadowEditor.UI.js'
},
treeshake: true,
external: [],
plugins: [
resolve(),
commonjs(),
babel({
exclude: 'node_modules/**'
})
]
};