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: module in package.json
First-class support for ESModules:lb4 commands should detect and generate ESModule artifacts
Default to ESModules: Use ESModules in examples/ and default lb4 app CLI 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.
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:
type: module
inpackage.json
lb4
commands should detect and generate ESModule artifactsexamples/
and defaultlb4 app
CLI to generating ESModule-based LB4 projectSimilar 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.