Hi - I don't know if there is a plan to support babel 7, I'm sure it's quite a lot of work but it currently errors when I try it with webpack 4 I get ReferenceError: [BABEL] app/app.js: Unknown option: .visitor. .
"reload"
],
"devDependencies": {
- "babel-cli": "^6.7.5",
- "babel-core": "^6.26.3",
+ "@babel/cli": "7.0.0-beta.54",
+ "@babel/core": "7.0.0-beta.54",
+ "@babel/plugin-external-helpers": "7.0.0-beta.54",
+ "@babel/plugin-proposal-class-properties": "7.0.0-beta.54",
+ "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.54",
+ "@babel/preset-env": "7.0.0-beta.54",
+ "@babel/preset-flow": "7.0.0-beta.54",
+ "@babel/preset-react": "7.0.0-beta.54",
+ "babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.3",
"babel-plugin-dynamic-import-node": "^1.2.0",
- "babel-plugin-external-helpers": "^6.22.0",
- "babel-plugin-transform-class-properties": "^6.24.1",
- "babel-plugin-transform-object-rest-spread": "^6.26.0",
- "babel-preset-env": "^1.6.0",
- "babel-preset-react": "^6.5.0",
"codecov": "^3.0.1",
"conventional-github-releaser": "^2.0.2",
"create-react-class": "^15.6.3",
@@ -81,7 +83,7 @@
"recompose": "^0.27.0",
"rimraf": "^2.5.2",
"rollup": "^0.58.2",
- "rollup-plugin-babel": "^3.0.4",
+ "rollup-plugin-babel": "^4.0.0-beta.2",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-resolve": "^3.3.0",
@@ -93,6 +95,7 @@
"react": "^15.0.0 || ^16.0.0"
},
"dependencies": {
+ "@babel/preset-flow": "7.0.0-beta.54",
"fast-levenshtein": "^2.0.6",
"global": "^4.3.0",
"hoist-non-react-statics": "^2.5.0",
[!] (babel plugin) Error: Cannot find module 'babel-plugin-external-helpers' from '/home/sam/src/github.com/gaearon/react-hot-loader'
- Did you mean "@babel/external-helpers"?
src/index.dev.js
Error: Cannot find module 'babel-plugin-external-helpers' from '/home/sam/src/github.com/gaearon/react-hot-loader'
- Did you mean "@babel/external-helpers"?
at Function.module.exports [as sync] (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/resolve/lib/sync.js:43:15)
at resolveStandardizedName (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
at resolvePlugin (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
at loadPlugin (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
at createDescriptor (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/config-descriptors.js:114:9)
at items.map (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/config-descriptors.js:69:50)
at Array.map (<anonymous>)
at createDescriptors (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/config-descriptors.js:69:29)
at createPluginDescriptors (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/config-descriptors.js:65:10)
at alias (/home/sam/src/github.com/gaearon/react-hot-loader/node_modules/@babel/core/lib/config/config-descriptors.js:57:49)
Would be really great if we could begin moving towards babel 7 support. I don't know what it would entail yet - and if all the deps have a working version for that, but certainly it'll only be more important so let me know what your thoughts are.
Hi - I don't know if there is a plan to support babel 7, I'm sure it's quite a lot of work but it currently errors when I try it with webpack 4 I get
ReferenceError: [BABEL] app/app.js: Unknown option: .visitor..When using babel-upgrade --write I get the following changes:
When running
npm buildI cannot get past the following error (haven't had a lot of time to investigate yet) but certainly, we might need to update a variety of things to properly handle the API changes.Would be really great if we could begin moving towards babel 7 support. I don't know what it would entail yet - and if all the deps have a working version for that, but certainly it'll only be more important so let me know what your thoughts are.