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

Make ES modules option consistent #1188

Conversation

schlessera
Copy link
Collaborator

ES modules were changed to be used by default in the following PR: #1140

This also seems to have changed the config setting from experimentEsm to esmModulesEnabled.

However, the experimentEsm option was not replaced everywhere, and the class docblock of the RewriteAmpUrls transformer even documented both.

The config being set in some of the spec tests is still using experimentEsm, even though that has no function anymore. The fact that the tests still pass is only due to the change of the default from false to true.

Copy link
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

Good one! Thanks for making this more consistent!

@sebastianbenz sebastianbenz merged commit 3ec7bd4 into ampproject:main Apr 1, 2021
@schlessera schlessera deleted the fix/update-remaining-experimentesm-options branch April 1, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants