This release is backward compatible and does not introduce any breaking changes. It includes several new features and fixes various issues, making it highly recommended to update to this version.
Features
-
AMD ID Customization:
- You can now define the AMD ID separately from the "libraryName" option using the new "amdId" option.
- It is possible to omit the AMD ID while still defining the "libraryName". To do this, set "amdId" to
false
.
-
Globals Option:
- A new "globals" option has been added to customize how external dependency required paths are mapped to global scope object properties.
-
Global Identifier Option:
- The new "globalIdentifier" option allows customization of how the global scope "this" is identifiable.
-
Enhanced Examples:
- The repository now includes numerous examples in the test directory, demonstrating usage with RequireJS, SystemJS, DojoJS, and standalone versions.
Fixes
-
SystemJS Compatibility:
- For modules that have dependencies, the resulting output is now SystemJS compatible.
-
Compact Wrapper:
- The wrapper has been optimized to be more compact, potentially reducing its size by up to 50%.
-
Concurrent esbuild Builds::
- The plugin now supports concurrent esbuild builds using the same option object reference. However, it is still not recommended to use the same option object reference for multiple builds simultaneously.
Documentation
All options and their descriptions can be found in the src/declaration.ts file.
For any questions or issues, feel free to open an issue on our GitHub repository.