CLI Changes
Now you can use npm modules in your projects by using built-in bundler in Lost. Lost's using ESBuild for bundling packages.
lost bundle --package "{package_name}"
- Creates {package_name}.bundle.js
for module and put it to ./Addon/Modules
folder. If there is any types were found in package.json
, .d.ts
file will be also created in the same directory.
Example
lost bundle --package "axios" --format "esm" --minify
--format
AND --minify
flags are optional. By default module bundles without minification and esm
format for ESBuild.
Bug fixes
- Fixed issue with using
.js
modules.Modules
folder name in import path wasn't converting to lower case.