Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 469 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 469 Bytes

typescript-bug-repro

Repro for typescript cts files

Instructions to repro

  1. npm install
  2. npm run build-ts

Expected output

const { resolve } = require("path");
const config = resolve(__dirname, "config.cts");
module.exports = config;
//# sourceMappingURL=config.cjs.map

Actual Output

import { resolve } from "path";
const config = resolve(__dirname, "config.cts");
module.exports = config;
//# sourceMappingURL=config.cjs.map