-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(turbopack): Add
__turbopack_original__
while tree shaking (#71547
) ### What? Preserve the original import specifier when tree shaking, so the import analyzers after tree shaking can work. ### Why? This is required for `next/dynamic`. ### How? Closes PACK-3307
- Loading branch information
Showing
20 changed files
with
452 additions
and
209 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
6 changes: 4 additions & 2 deletions
6
turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/1/output.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/2/output.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 32 additions & 16 deletions
48
...ates/turbopack-ecmascript/tests/tree-shaker/analyzer/amphtml-document/output.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 16 additions & 8 deletions
24
...pack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/app-route/output.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
turbopack/crates/turbopack-ecmascript/tests/tree-shaker/analyzer/dce/output.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.