Consistency Goals

(I still have a lot of refactoring before this is completely true.)

The prefered method of import is to use a tag:

html <script type="module" src="./some-js-module/global.mjs"></script> <link rel="stylesheet" link="./some-css-module/global.css" />

but they can be imported using their native language syntax as well:

javascript import "./some-js-module/global.mjs";

css @import "./some-css-module/global.css";

Unless and until the CSS Module Scripts proposal is widely adopted, all css modules are global.

html <script type="module" src="https://johnhenry.github.io/lib/define-component.component/0.0.0/global.mjs" ></script> <!-- registers the "<define-component>" tag -->