🏠 New in Low Baseline Support: JavaScript modules

May 9, 2018

caniuse · mdn · [spec]([‘https://html.spec.whatwg.org/multipage/webappapis.html#javascript-module-script’, ‘https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-modules’])

JavaScript modules allow code to be organized into reusable units. Modules use import to load other modules and export to declare what is available to import from other modules. In HTML, modules are loaded with <script type="module">.

Source features