babel-preset-env SyntaxError: Unexpected token with spread properties
问题 Why its not accepting spread properties ? I am using babel-preset-env for this. .babelrc { "presets": [ "react", [ "env", { "targets": {}, "debug": true, "modules": "commonjs" } ] ] } package.json { "name": "myapp", "version": "0.1.0", "main": "index.js", "private": true, "dependencies": { "babel-core": "6.25.0", "babel-loader": "7.1.1", "babel-preset-env": "^1.6.0", "babel-preset-react": "^6.24.1", "extract-text-webpack-plugin": "3.0.0", "file-loader": "0.11.2", "html-webpack-plugin": "^2.30