Created
April 9, 2018 09:15
-
-
Save firedfox/da900449a01b72a54aa773ffc2530547 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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