next.js
67468f98 - Add support for tsconfig 'nodenext' | 'node16' (#44177)

Commit
3 years ago
Add support for tsconfig 'nodenext' | 'node16' (#44177) ## ESM: support module option for tsconfig.json - fixes #37525 - fixes #41961 With [TypeScript 4.7 providing ECMAScript Module Support](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js), we can now set this in our tsconfig.json file for the [module](https://www.typescriptlang.org/tsconfig#module) option. Webpack added "extensionAlias" to solve importing ts files with .js extension -> https://github.com/webpack/enhanced-resolve/pull/351 Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
Author
Parents
Loading