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

16 lines
368 B
TypeScript
Raw Normal View History

// @target: ES6
// @module: system
// @rootDir: tests/cases/conformance/es6/moduleExportsSystem/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");