Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement variable deconflicting logic (#2689)
* Refactor scope structure * Initial draft for new deconflicting solution with variable access tracking * Slightly improve some names * Deconflict CJS interop function * Cache findVariable via accessedOutsideVariables * Get rid of unnecessary parameter and improve name * Use objects instead of Sets to track used names * Only track global outside variables on module scopes, re-unify external variable handling with other import handling * Move warning about missing exports into Graph * Test variables are no longer needlessly deconflicted due to globals in other chunks * Use tree-shaking information when deconflicting * Deconflict build-in names, resolves #2680 * Make sure it resolves #2683 * Clean up chunk deconflicting code * Change priorities so that chunk variable names take precedence over imported variable names * Fix acorn import fix
- Loading branch information
1 parent
fe84e00
commit 19a7727
Showing
220 changed files
with
1,598 additions
and
816 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
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
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
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
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
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
Oops, something went wrong.