Closed as not planned
Description
🔎 Search Terms
5.6 commonjs cjs node10 moduleResolution modules regression
🕗 Version & Regression Information
- This changed between versions 5.5.4 and 5.6.2
- This changed in commit or PR: Example of the failure on
inquirer
Chore(deps-dev): Bump typescript from 5.5.4 to 5.6.2 SBoudrias/Inquirer.js#1554
⏯ Playground Link
💻 Code
My tsconfig.cjs.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": ["es2023"],
"target": "es6",
"module": "commonjs",
"moduleResolution": "node10",
"outDir": "dist/cjs",
"declarationDir": "dist/cjs/types"
}
}
🙁 Actual behavior
The files outputted in dist/cjs
are now using esm module syntax instead fo cjs (import ... from
).
🙂 Expected behavior
As of version 5.5.4, the files outputted in dist/cjs
were cjs (require(...)
).
Additional information about the issue
No response