mirror of
https://github.com/swc-project/swc.git
synced 2024-10-04 20:28:43 +03:00
fix(es/codegen): Emit ;
for TsImportEqualsDecl
(#7464)
This commit is contained in:
parent
81a413b332
commit
3935d02e36
@ -295,6 +295,7 @@ where
|
||||
formatting_space!();
|
||||
|
||||
emit!(n.module_ref);
|
||||
formatting_semi!();
|
||||
}
|
||||
|
||||
#[emitter]
|
||||
|
@ -0,0 +1,2 @@
|
||||
import Test1 = MyNamespace.Test1;
|
||||
import Test2 = Test1;
|
@ -0,0 +1,2 @@
|
||||
import Test1 = MyNamespace.Test1;
|
||||
import Test2 = Test1;
|
1
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_equals/output.min.js
vendored
Normal file
1
crates/swc_ecma_codegen/tests/fixture/typescript/ts_import_equals/output.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import Test1=MyNamespace.Test1;import Test2=Test1;
|
@ -5,10 +5,10 @@ module A__2 {
|
||||
export var Origin__3 = new Point__3(0, 0);
|
||||
}
|
||||
module B__2 {
|
||||
import a__5 = A__2
|
||||
import a__5 = A__2;
|
||||
}
|
||||
module C__2 {
|
||||
import a__6 = A__2
|
||||
import a__6 = A__2;
|
||||
var m__6: typeof a__6;
|
||||
var p__6: a__6.Point;
|
||||
var p__6 = {
|
||||
@ -17,11 +17,11 @@ module C__2 {
|
||||
};
|
||||
}
|
||||
module D__2 {
|
||||
import a__7 = A__2
|
||||
import a__7 = A__2;
|
||||
var p__7 = new a__7.Point(1, 1);
|
||||
}
|
||||
module E__2 {
|
||||
import a__8 = A__2
|
||||
import a__8 = A__2;
|
||||
export function xDist__8(x__9: a__8.Point) {
|
||||
return a__8.Origin.x - x__9.x;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user