-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Babel 7 #487
Upgrade to Babel 7 #487
Conversation
Codecov Report
@@ Coverage Diff @@
## master #487 +/- ##
======================================
Coverage 82.8% 82.8%
======================================
Files 44 44
Lines 2896 2896
Branches 1011 1011
======================================
Hits 2398 2398
Misses 304 304
Partials 194 194
Continue to review full report at Codecov.
|
package.json
Outdated
"babel-eslint": "^7.2.1", | ||
"babel-jest": "^19.0.0", | ||
"babel-plugin-transform-es2015-block-scoping": "^6.23.0", | ||
"babel-preset-env": "^1.2.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's also a v2.0.0-alpha.3 for this if we want to use
Any blocker to push this, apart from probably increment minor version? |
If we release as a minor or anything it also means that users using babili as a preset will fail unless they use babel-core 7.0 alpha as well |
Why don't generate a "next" version instead of "latest" like all of the 7beta packages?
|
@boopathi @hzoo This is preventing me for upgrading all our build process to babel7, and I would argue that many other developers too (to reuse the same AST tree) I will be happy to maintain a branch in sync with upstream changes if that's required. |
Any ETA for this PR to be merged? |
Waiting to find a way to continue testing packages for |
6295e25
to
becae5c
Compare
Trying out babel-7.0.0-beta.0 version. |
package.json
Outdated
@@ -70,5 +71,8 @@ | |||
}, | |||
"workspaces": [ | |||
"packages/*" | |||
] | |||
], | |||
"resolutions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is require because
- jest-cli uses babel-core: 6 version which is hoisted to the node_modules directory by using yarn workspaces which in turn hoists babel-register: 6
- running babel-register with 6 version would break and report this following error which is deprecated in babel 7
TypeError: /Users/vshanmugam/open-source/babili/gulpfile.babel.js: path.arrowFunctionToExpression is not a function
at PluginPass.ArrowFunctionExpression (/Users/vshanmugam/open-source/babili/node_modules/babel-plugin-transform-es2015-arrow-functions/lib/index.js:10:14)
c2cb242
to
592e689
Compare
Some updates: Official
As can be seen in the
I may want to try and fix this port, or at least partially, if these questions get answered. |
* Babel-7 returns null if there is no function parent | ||
* and uses getProgramParent to get Program | ||
*/ | ||
function getFunctionParent(path) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to make it to one of the helpers?
@boopathi thanks a bunch for rebasing the work, will continue our testing! We will be using babili on production shortly, so our team at Salesforce can help with some bugs and contributions whenever possible. |
Yeah although I haven't been involved in this particular project for a while I think it should land on master and then make another branch for the old version and start doing releases? This is what we did with v7; we spent a long time making a 7.x branch but it was easier to just develop on master and create a 6.x branch for old code. (Assuming the tests pass already) |
That would be awesome! I will report back more issues soon, and some PRs too ;) We need to make sure the README is clear about what branch and versions maps to what. |
I would say so, Makes it better to do a patch release and backport it to 6 when needed while we work on new features in master. |
Master now uses babel-7 🎉
babel-6 is in |
Awesome job 🎉 🎉 |
Current Bugs:
TypeError: Cannot read property 'getBinding' of null
node smoke/run.js html-minifier
TypeError: Cannot read property 'isPure' of null
node smoke/run.js jquery
node smoke/run.js lodash