Skip to content
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

[Encore] Make @babel/preset-env use polyfills by default #557

Merged
2 commits merged into from Mar 29, 2019

Conversation

Lyrkan
Copy link
Contributor

@Lyrkan Lyrkan commented Mar 27, 2019

Q A
License MIT

This PR is related to symfony/webpack-encore#545 and must not be merged until a new version of Encore is released (0.26.x).

Quick summary: we will soon set the useBuiltIns option of @babel/preset-env to false instead of entry by default (which makes it not handle core-js polyfills anymore).

This is needed because the other values (entry and usage) require the users to at least add core-js to their projects and specify its version in @babel/preset-env's settings.

With this update the recipe will automatically require core-js@3 and configure @babel/preset-env so polyfills are automatically added when/where they are needed (useBuiltIns: 'usage' and corejs: 3).

/cc @weaverryan

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Pull request passes validation.

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

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

0.26.0 has been tagged. This is ready to be merged

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Pull request passes validation.

@weaverryan
Copy link
Member

I hijacked this to also talk about Encore.enableIntegrityHashes(), which was also part of the same release

@ghost ghost merged commit 03057a8 into symfony:master Mar 29, 2019
ghost pushed a commit that referenced this pull request Mar 29, 2019
This pull request was closed.
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.

None yet

3 participants