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

32 lines
569 B
TypeScript

// @module: commonjs
// @target: es3
// @lib: es6
// @filename: test.ts
export async function fn() {
const req = await import('./test') // ONE
}
export class cl1 {
public async m() {
const req = await import('./test') // TWO
}
}
export const obj = {
m: async () => {
const req = await import('./test') // THREE
}
}
export class cl2 {
public p = {
m: async () => {
const req = await import('./test') // FOUR
}
}
}
export const l = async () => {
const req = await import('./test') // FIVE
}