Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): support hybrid CJS/ESM setups
BREAKING CHANGE: This changes TypeScript's default behaviour away from forcing CommonsJS mode, and to support generatng ESM files in accordance with Node.js' algorithm Projects may be affected if you use `lb-tsc` and/or extend `tsconfig.*.json` from `@loopback/build`, and: - have `type: module` in `package.json`, or - have `.mts` files, or - use `import()`s (regardless if file ext. is `.ts`/`.mts`/`.cts`) see: https://www.typescriptlang.org/tsconfig/#moduleResolution see: #10744 Signed-off-by: Rifa Achrinza <[email protected]>
- Loading branch information