-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer/typescript): unexpectedly removed class binding from …
…ExportNamedDeclaration (#4351) The original `SymbolFlags` methods were a bit confusing I renamed and re-implemented them.
- Loading branch information
Showing
6 changed files
with
40 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
commit: 12619ffe | ||
|
||
Passed: 6/6 | ||
Passed: 7/7 | ||
|
||
# All Passed: | ||
* babel-plugin-transform-typescript | ||
|
11 changes: 11 additions & 0 deletions
11
...m_conformance/tests/babel-plugin-transform-typescript/test/fixtures/class-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,11 @@ | ||
import Im, {Ok} from 'a'; | ||
class Foo {} | ||
const Bar = 0; | ||
function Func() {} | ||
type Baz = any; | ||
interface Baq {} | ||
namespace Name { | ||
export const Q = 0; | ||
} | ||
|
||
export { Im, Ok, Foo, Bar, Func, Baz, Baq, Name }; |
9 changes: 9 additions & 0 deletions
9
..._conformance/tests/babel-plugin-transform-typescript/test/fixtures/class-export/output.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,9 @@ | ||
import Im, { Ok } from "a"; | ||
class Foo {} | ||
const Bar = 0; | ||
function Func() {} | ||
let Name; | ||
(function(_Name) { | ||
const Q = _Name.Q = 0; | ||
})(Name || (Name = {})); | ||
export { Im, Ok, Foo, Bar, Func, Name }; |