-
Notifications
You must be signed in to change notification settings - Fork 38
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
refactor(babelrc): migrate babelrc to babel.config.json #1338
Conversation
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 can be a sensitive part of the codebase, so make sure to test thoroughly (with IE11 if necessary).
dae84cf
to
23fe103
Compare
I've tested the latest commit with Chrome, Firefox, Safari and also verified that at minimum the transition and landing pages for IE 11 work properly (though the transition page has some styling issues that leave the background completely white). As such, I believe that the new config should be ready for merging as of the latest commit, though I may want to postpone the merge until the team can discuss whether they want to add the additional plugins for babel. |
You also need to test functionality, since this PR is modifying the JS transpilation process. |
As for functionality, I’ve done the end to end tests for the platforms specified in my previous comment with the exception of IE11, as there were some issues with the VM i was using |
It is good practice in Babel 7.x to use a project-wide babel.config.json instead of .babel.rc, which is a relic of Babel 6.x (we are on 7.x). - implemented babel.config.json based on FormSG's current configuration fix #1264
- Added corejs and regenerator-runtime dependencies for babel preset-env fix #1264
23fe103
to
4a84998
Compare
snyk test errored out, not an actual failure |
Functionality tested on IE11, all good
Problem
It is good practice in Babel 7.x to use a project-wide babel.config.json instead of .babel.rc, which
is a relic of Babel 6.x (we are on 7.x).
Closes #1264
Solution