loopback-next
loopback-next copied to clipboard
feat(build/booter): support esm
This PR introduces support for ESModules in @loopback/build and @loopback/boot.
Breaking changes:
@loopback/buildtsconfig.common.jsonis updated to support hybrid CommonJS+ESModule packages. This prevents TypeScript from rewriting dynamicimport()s intorequire()s, which is needed by@loopback/boot.
@loopback/bootloadClassesFromFilesnow returns aPromise
Part of: https://github.com/loopbackio/loopback-next/issues/10744
Checklist
- [x] DCO (Developer Certificate of Origin) signed in all commits
- [x]
npm testpasses on your machine - [x] New tests added or existing tests modified to cover all changes
- [x] Code conforms with the style guide
- API Documentation in code was updated
- Documentation in /docs/site was updated
- Affected artifact templates in
packages/cliwere updated - Affected example projects in
examples/*were updated