swc/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesAmd.ts

15 lines
361 B
TypeScript
Raw Normal View History

// @target: ES6
// @module: amd
// @rootDir: tests/cases/conformance/es6/moduleExportsAmd/src
// @outFile: output.js
// @filename: src/a.ts
import foo from "./b";
export default class Foo {}
foo();
// @filename: src/b.ts
import Foo from "./a";
export default function foo() { new Foo(); }
// https://github.com/microsoft/TypeScript/issues/37429
import("./a");