-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ES modules option consistent (#1188)
* Make ES modules option consistent * Fix config in spec test * Change tests to test both ESM and non-ESM
- Loading branch information
1 parent
082fd32
commit 3ec7bd4
Showing
7 changed files
with
18 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/optimizer/spec/transformers/experimental/RewriteAmpUrls/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"experimentEsm": true | ||
"esmModulesEnabled": true | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/optimizer/spec/transformers/valid/RewriteAmpUrls/adds_esm/input.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<!-- | ||
{ | ||
"esmModulesEnabled": true | ||
} | ||
--> | ||
<!doctype html> | ||
<html ⚡> | ||
<head> | ||
|
8 changes: 3 additions & 5 deletions
8
packages/optimizer/spec/transformers/valid/RewriteAmpUrls/adds_lts/expected_output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
packages/optimizer/spec/transformers/valid/RewriteAmpUrls/adds_preloads/expected_output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/optimizer/spec/transformers/valid/RewriteAmpUrls/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"esmModulesEnabled": false | ||
} |