This PR introduces support for ESModules in @loopback/build and @loopback/boot.
Breaking changes:
@loopback/build
tsconfig.common.json is updated to support hybrid CommonJS+ESModule packages. This prevents TypeScript from rewriting dynamic import()s into require()s, which is needed by @loopback/boot.
This PR introduces support for ESModules in
@loopback/build
and@loopback/boot
.Breaking changes:
@loopback/build
tsconfig.common.json
is updated to support hybrid CommonJS+ESModule packages. This prevents TypeScript from rewriting dynamicimport()
s intorequire()
s, which is needed by@loopback/boot
.@loopback/boot
loadClassesFromFiles
now returns aPromise
Part of: https://github.com/loopbackio/loopback-next/issues/10744
Checklist
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈