-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should not mangle when destructuring a reexport
- Loading branch information
Showing
7 changed files
with
51 additions
and
5 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: 2 additions & 0 deletions
2
test/configCases/mangle/mangle-with-destructuring-assignment/module2.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,2 @@ | ||
export const aaa = "a"; | ||
export const bbb = "b"; |
2 changes: 2 additions & 0 deletions
2
test/configCases/mangle/mangle-with-destructuring-assignment/module3.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,2 @@ | ||
export const aaa = "a"; | ||
export const bbb = "b"; |
6 changes: 6 additions & 0 deletions
6
test/configCases/mangle/mangle-with-destructuring-assignment/reexport.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,6 @@ | ||
export * as obj3 from "./module2" | ||
export const obj3CanMangle = __webpack_exports_info__.obj3.canMangle; | ||
|
||
import * as reexport2 from "./reexport2?side-effects" | ||
export const obj4 = { nested: reexport2 } | ||
export const obj4CanMangle = __webpack_exports_info__.reexport2.canMangle; |
2 changes: 2 additions & 0 deletions
2
test/configCases/mangle/mangle-with-destructuring-assignment/reexport2.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,2 @@ | ||
export * as obj5 from "./module3" | ||
export const obj5CanMangle = __webpack_exports_info__.obj5.canMangle; |
8 changes: 8 additions & 0 deletions
8
test/configCases/mangle/mangle-with-destructuring-assignment/webpack.config.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