Trying to set up a Babel environment for this JSBin: https://jsbin.com/taquke/edit?js,output
This is my package.json:
{
"name": "babel",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1"
}
}
This is my .babelrc:
{
"presets": ["es2015", "react"],
"plugins": ["transform-object-rest-spread"],
"env": {
"development": {
}
}
}
+I've defined a file watcher for WebStorm (to babel).
I'm getting this when saving the JS file:
Any idea?