-
Notifications
You must be signed in to change notification settings - Fork 991
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
Fixes #28229 - upgrade babel and jest #7164
Conversation
Issues: #28229 |
Can this new babel config give us the ability to use
instead of
? (I've noticed it doesn't work currently and I think it was something to do with Babel understanding that JSX.) |
@jeremylenz I think it can be done with a babel plugin. I would prefer to do so in a different PR, maybe in the |
fa49649
to
6b09af2
Compare
Include an upgrade for jest so test works with babel v7
6b09af2
to
7197d33
Compare
"babel-eslint": "^8.2.3", | ||
"babel-jest": "^23.6.0", | ||
"babel-loader": "^7.1.1", | ||
"@babel/cli": "^7.7.0", |
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.
do we also need to package those? because we don't have babel 7.x packaged so far
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.
or is this just for dev setup?
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.
Didn't you packaged any babel
before? You need them for the webpack build
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.
Notice there is a WIP to move them to a separate package:
#7178
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.
The babel packages changed their names from v6 to v7
It used to be babel-core
and now it's @babel/core
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.
and we only have babel-core (and friends) in 6.26 packaged, not 7.x
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.
True
Instead of merging this PR, it makes more sense merging #7178 |
Closing, merged here: #7178 |
What this PR does:
babel-polyfill
tocore-js
, see: https://babeljs.io/docs/en/babel-polyfill and https://github.com/theforeman/foreman-js/releases/tag/v3.0.0)Blocked by #6981