Babel 6 was just released! This means that it might take some time for all possible integrations to upgrade. Make sure to check the compatibility of your chosen integration. https://babeljs.io/blog/2015/10/29/6.0.0/
ES6 modules now need the following:
Added to package.json
:
"dependencies": {
"babel-core": "6.0.12",
"babel-plugin-transform-es2015-modules-commonjs": "6.0.12",
"babel-preset-es2015": "6.0.12",
},
Create .bashrc
:
{
"presets": [
"es2015",
"stage-0"
],
"ignore": []
}
Create .bashrc
:
{
"presets": ["es2015"],
"plugins": ["transform-es2015-modules-commonjs"]
}