ESM default via package.json type module in mixed CommonJS application
Goal is to migrate a small Node.js application from CommonJS to ECMAScript Modules without service interruption. The codebase currently relies on .js files interpreted as CommonJS and on CommonJS-specific loading semantics. A documented configuration transition is setting package.json "type" to "module", which changes the default interpretation of .js files