Skip to content

Make ES modules option consistent#1188

Merged
sebastianbenz merged 3 commits intoampproject:mainfrom
schlessera:fix/update-remaining-experimentesm-options
Apr 1, 2021
Merged

Make ES modules option consistent#1188
sebastianbenz merged 3 commits intoampproject:mainfrom
schlessera:fix/update-remaining-experimentesm-options

Conversation

@schlessera
Copy link
Copy Markdown
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
Copy Markdown
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