Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize: Simplify the
export-default-from
transform (#14768)
* optimize: Simplify the `export-default-from` transform * chore: merge specifiers if possible
- Loading branch information
1 parent
ff6304b
commit f2ba41b
Showing
4 changed files
with
18 additions
and
23 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
4 changes: 1 addition & 3 deletions
4
...proposal-export-default-from/test/fixtures/export-default/default-compound-es6/output.mjs
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 @@ | ||
import _v from "mod"; | ||
export { _v as v }; | ||
export { x, y as w } from "mod"; | ||
export { default as v, x, y as w } from "mod"; |
3 changes: 1 addition & 2 deletions
3
...l-plugin-proposal-export-default-from/test/fixtures/export-default/default-es6/output.mjs
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,2 +1 @@ | ||
import _foo from "bar"; | ||
export { _foo as foo }; | ||
export { default as foo } from "bar"; |
3 changes: 1 addition & 2 deletions
3
...n-proposal-export-default-from/test/fixtures/export-default/default-typescript/output.mjs
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,2 +1 @@ | ||
import _foo from "bar"; | ||
export { _foo as foo }; | ||
export { default as foo } from "bar"; |