mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
13 lines
298 B
TypeScript
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');
|
|
}
|