mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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');
|
|
}
|