Skip to content

Releases: mxrsoon/use-module

use-module v0.3-alpha

13 Apr 02:18
e810b93
Compare
Choose a tag to compare
use-module v0.3-alpha Pre-release
Pre-release

Note: This is an alpha release. Please file new issues for any bugs you find in it.

Changes

  • The <use-module> tag now supports the adopt attribute, which, if present, adds the imported CSS stylesheet to the root node's adopted stylesheets.

use-module v0.2-alpha

24 Jan 16:21
Compare
Choose a tag to compare
use-module v0.2-alpha Pre-release
Pre-release

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

19 Dec 16:28
Compare
Choose a tag to compare
use-module v0.1-alpha Pre-release
Pre-release

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
  • <use-module> tag for importing modules directly on HTML

    • as attribute for mapping imported module's exports to global scope
    • default 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