mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
29 lines
438 B
TypeScript
29 lines
438 B
TypeScript
// @module: amd
|
|
// @target: 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");
|
|
}
|
|
} |