Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(const-folding): do not evaluate identifier in export specifiers (#…
…828)
- Loading branch information
1 parent
b428527
commit 8b90599
Showing
4 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-minify-constant-folding/__tests__/fixtures/export-specifier/actual.js
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 @@ | ||
const a = "a"; | ||
const b = "b"; | ||
export { a, b }; |
3 changes: 3 additions & 0 deletions
3
packages/babel-plugin-minify-constant-folding/__tests__/fixtures/export-specifier/babel.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 @@ | ||
{ | ||
"sourceType": "module" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ages/babel-plugin-minify-constant-folding/__tests__/fixtures/export-specifier/expected.js
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 @@ | ||
const a = "a"; | ||
const b = "b"; | ||
export { a, b }; |
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