Files
tsgo/testdata/tests/cases/compiler/rewriteRelativeImportExtensionsDynamicImportCjs.ts

18 lines
334 B
TypeScript

// @target: esnext
// @module: nodenext
// @rewriteRelativeImportExtensions: true
// @noTypesAndSymbols: true
// @filename: index.cts
import { getSpecifier } from "./specifier.cjs";
import(getSpecifier());
// @filename: specifier.cts
export function getSpecifier() {
return "./target.ts";
}
// @filename: target.ts
export {};