Skip to content

Instantly share code, notes, and snippets.

@terrierscript
Last active September 5, 2016 21:51
Show Gist options
  • Select an option

  • Save terrierscript/aa85d527ff6d0569c70d to your computer and use it in GitHub Desktop.

Select an option

Save terrierscript/aa85d527ff6d0569c70d to your computer and use it in GitHub Desktop.
Babel6 + rollup.jsをやるにあたってちょっとハマった話 ref: http://qiita.com/inuscript/items/be4d437c4a935a241cd0
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
$ npm install rollup -D
$ npm install rollup-plugin-babel -D
$ npm install babel-preset-es2015-rollup -D # これが必要
:
"babel": {
"presets": [
"es2015-rollup"
]
},
:
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