mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
18 lines
285 B
TypeScript
18 lines
285 B
TypeScript
// @module: es2020
|
|
// @target: es2020
|
|
// @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");
|
|
}
|