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

13 lines
298 B
TypeScript

// @module: umd
// @target: es2015
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
// https://github.com/microsoft/TypeScript/issues/36780
async function func() {
const packageName = '.';
const packageJson = await import(packageName + '/package.json');
}