Last active
September 5, 2016 21:51
-
-
Save terrierscript/aa85d527ff6d0569c70d to your computer and use it in GitHub Desktop.
Babel6 + rollup.jsをやるにあたってちょっとハマった話 ref: http://qiita.com/inuscript/items/be4d437c4a935a241cd0
This file contains hidden or 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
| It looks like your Babel configuration specifies a module transformer. Please disable it. If you're using the "es2015" preset, consider using "es2015-rollup" instead. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information | |
| Error: It looks like your Babel configuration specifies a module transformer. Please disable it. If you're using the "es2015" preset, consider using "es2015-rollup" instead. See https://github.com/rollup/rollup-plugin-babel#configuring-babel for more information |
This file contains hidden or 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
| $ npm install rollup -D | |
| $ npm install rollup-plugin-babel -D | |
| $ npm install babel-preset-es2015-rollup -D # これが必要 |
This file contains hidden or 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
| : | |
| "babel": { | |
| "presets": [ | |
| "es2015-rollup" | |
| ] | |
| }, | |
| : |
This file contains hidden or 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
| import babel from "rollup-plugin-babel" | |
| export default { | |
| entry: "src/index.js", | |
| dest: "dest/index.js", | |
| plugins: [babel()] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment