Releases: mxrsoon/use-module
Releases · mxrsoon/use-module
use-module v0.3-alpha
Note: This is an alpha release. Please file new issues for any bugs you find in it.
Changes
- The
<use-module>
tag now supports theadopt
attribute, which, if present, adds the imported CSS stylesheet to the root node's adopted stylesheets.
use-module v0.2-alpha
Note: This is an alpha release. Please file new issues for any bugs you find in it.
Changes
- Unicode characters in inline JS modules are now handled properly.
use-module v0.1-alpha
Note: This is an alpha release. Please file an issue for any unreported bug you may find.
Changes
-
Import JS (ES6), CSS and HTML modules using the
use()
function- Allow passing
baseURL
for resolving relative path - Allow passing
default
options for setting whether the default export should be mapped directly if available, or force mapping the entire module
- Allow passing
-
<use-module>
tag for importing modules directly on HTMLas
attribute for mapping imported module's exports to global scopedefault
attribute for setting whether the default export should be mapped directly if available, or force mapping the entire module
-
Adds
use()
function to global scope if imported by<script>
tag