Skip to content

Unrevert "Exclude core-js polyfills from ESM-capable browser bundles"#6075

Merged
aduth merged 5 commits intomainfrom
aduth-babel-polyfill-env-2
Mar 17, 2022
Merged

Unrevert "Exclude core-js polyfills from ESM-capable browser bundles"#6075
aduth merged 5 commits intomainfrom
aduth-babel-polyfill-env-2

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Mar 16, 2022

This is an unrevert of #6068.

It includes an extra commit c4b97b5 to try to force the failures seen in production build in our CI environment, by dropping the jsbundling_rails gem. jsbundling_rails will always install devDependencies with no option to opt-out.

This doesn't yet include the change from #6073, since I want to validate a build failure first.

aduth added 2 commits March 16, 2022 14:14
**Why**: So that we can have CI install dependencies in the same way as is expected in production, since jsbundling_rails will always install devDependencies with no option to opt-out.
@aduth aduth changed the title Unrevert "Exclude core-js polyfills from ESM-capable browser bundles Unrevert "Exclude core-js polyfills from ESM-capable browser bundles" Mar 16, 2022
@aduth
Copy link
Copy Markdown
Contributor Author

aduth commented Mar 16, 2022

Verified expected failure in CircleCI, without fix included:

ERROR in ./app/components/clipboard_button_component.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-plugin-polyfill-corejs3'

https://app.circleci.com/pipelines/github/18F/identity-idp/70980/workflows/1e41023f-f056-4ee5-b7b6-7fe05c79d881/jobs/114784

**Why**: So that it's available in production build environments.

changelog: Improvements, Optimization, Skip polyfill load behavior for modern browsers
@aduth aduth marked this pull request as ready for review March 16, 2022 19:11
Copy link
Copy Markdown
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit 4d7ccc7 into main Mar 17, 2022
@aduth aduth deleted the aduth-babel-polyfill-env-2 branch March 17, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants