Skip to content

Instantly share code, notes, and snippets.

@firedfox
Created April 9, 2018 09:15
Show Gist options
  • Save firedfox/da900449a01b72a54aa773ffc2530547 to your computer and use it in GitHub Desktop.
Save firedfox/da900449a01b72a54aa773ffc2530547 to your computer and use it in GitHub Desktop.
/**
* @file rollup配置文件
* @author wangyang02
*/
import babel from 'rollup-plugin-babel';
export default [{
input: 'src/index.js',
plugins: [
babel({
presets: [
['env', {modules: false}]
],
plugins: [
'transform-class-properties',
['transform-object-rest-spread', {useBuiltIns: true}]
]
})
],
output: [
{file: 'dist/index.js', format: 'es'}
]
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment