mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
31 lines
557 B
TypeScript
31 lines
557 B
TypeScript
|
// @module: es2020
|
||
|
// @target: es2020
|
||
|
// @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
|
||
|
}
|