development-docs/nodenextNode16.md
.cts, .mts, .cjs, .mjsThis feature has already been implemented. Here are my notes from when I was doing the work
Implement node module type classifier:
ForceNodeNextCJSEmitDoes our code check for .d.ts extensions anywhere?
Think about splitting out index.ts further:
Matrix:
Notes about specific matrix entries:
Rethink:
getOutput: null in transpile-only mode. Also may return emitskipped
getOutputTranspileOnly: configured module option
getOutputForceCommonJS: commonjs module option
getOutputForceNodeCommonJS: nodenext cjs module option
getOutputForceESM: esnext module option
Add second layer of classification to classifier:
if classifier returns auto (no moduleType override)
getOutput emits, donenodeModuleTypeClassifier
getOutput based on its response