loopback-next
loopback-next copied to clipboard
ESModule Support
Packages that need to be updated to support ESModules:
-
@loopback/boot -
@loopback/build -
@loopback/cli -
examples/*
The path to supporting ESModules can be broken down into three stages:
-
Second-class support for ESModules: Projects should be able to switch over to ESModule by simply setting
type: moduleinpackage.json -
First-class support for ESModules:
lb4commands should detect and generate ESModule artifacts -
Default to ESModules: Use ESModules in
examples/and defaultlb4 appCLI to generating ESModule-based LB4 project
Similar to action-based sequences, we should not drop support for CommonJS entirely, but instead indefinitely deprecate it by the end of stage 3. This means continuing to generate CommonJS @loopback/* packages.
Hello, any idea when this will be available ?
Hello, is there any news on getting ESM supported with Loopback? It would be really great especially for monorepos. (As it currently requires some sort of an hybrid configuration, and it's really not straightforward)