-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ts] Fix compiling extended exported nested namespace (#15798)
- Loading branch information
1 parent
3caeeb1
commit 12dfea7
Showing
4 changed files
with
43 additions
and
10 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
6 changes: 6 additions & 0 deletions
6
...abel-plugin-transform-typescript/test/fixtures/namespace/nested-shorthand-export/input.ts
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 namespace ui.a { | ||
export const x = 1; | ||
} | ||
export namespace ui.b { | ||
export const y = 2; | ||
} |
13 changes: 13 additions & 0 deletions
13
...el-plugin-transform-typescript/test/fixtures/namespace/nested-shorthand-export/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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export let ui; | ||
(function (_ui2) { | ||
let a; | ||
(function (_a) { | ||
const x = _a.x = 1; | ||
})(a || (a = _ui2.a || (_ui2.a = {}))); | ||
})(ui || (ui = {})); | ||
(function (_ui) { | ||
let b; | ||
(function (_b) { | ||
const y = _b.y = 2; | ||
})(b || (b = _ui.b || (_ui.b = {}))); | ||
})(ui || (ui = {})); |