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.
ES modules were changed to be used by default in the following PR: https://github.com/ampproject/amp-toolbox/pull/1140
This also seems to have changed the config setting from
experimentEsm
toesmModulesEnabled
.However, the
experimentEsm
option was not replaced everywhere, and the class docblock of theRewriteAmpUrls
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 fromfalse
totrue
.