swc/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.ts
2022-02-04 17:08:38 +09:00

30 lines
451 B
TypeScript

// @module: umd
// @target: es5
// @lib: es6
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
import("./0");
var p1 = import("./0");
p1.then(zero => {
return zero.foo();
});
export var p2 = import("./0");
function foo() {
const p2 = import("./0");
}
class C {
method() {
const loadAsync = import ("./0");
}
}
export class D {
method() {
const loadAsync = import ("./0");
}
}