Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

fix(babel-node): fix a critical bug where missing polyfills were crashing the library #712

Merged
merged 1 commit into from Jan 21, 2019

Conversation

JonathanMontane
Copy link
Contributor

@JonathanMontane JonathanMontane commented Jan 21, 2019

Summary
It seems that our node transpiled version has an issue with the pinned version of @babel/node, which relied on @babel/polyfills#7.0.0 which had a bug where it did not include correctly import its core-js dependency.

To fix this, I reset the lockfile and added @babel/polyfill with a non bugged version to fix the issue.

Result
Library does not crash when used with import.

Next Steps
This bug has been present for a while but was not detected because we were not using polyfills until the IE11 release, and therefore we were not hitting that part of the code.

The current ways of validating the build rely on the self contained library which is not compiled through babel-node but by webpack, and uses a correct version of @babel/polyfills. Therefore a clear next step is to add a way to validate the babel-node build.

  • Add pre-release validation for the babel-node build.

Fixes #711

@JonathanMontane JonathanMontane self-assigned this Jan 21, 2019
@JonathanMontane JonathanMontane changed the title fix(node-support): fix a critical bug where missing polyfills were crashing the library fix(babel-node): fix a critical bug where missing polyfills were crashing the library Jan 21, 2019
@JonathanMontane JonathanMontane merged commit 2a2f808 into master Jan 21, 2019
@JonathanMontane JonathanMontane deleted the fix/node-support branch January 21, 2019 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core-js/modules ?
2 participants