mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
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');
|
|
}
|