Baseline Widely JavaScript modules
JavaScript 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">.
Baseline Status
Widely Available
Since 2018-05-09
First Core Launch
Chrome 61
2017-09-05
Core-3 Stability
246d
Last: Firefox (2018-05-09)
BCD Keys Mapped
15
Group: JavaScript modules
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 61 | 2017-09-05 |
| Chrome Android | mobile | 61 | 2017-09-05 |
| Safari | desktop | 11 | 2017-09-19 |
| Safari on iOS | mobile | 11 | 2017-09-19 |
| Edge | desktop | 16 | 2017-10-17 |
| Firefox | desktop | 60 | 2018-05-09 |
| Firefox for Android | mobile | 60 | 2018-05-09 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.Worklet.ecmascript_modules | DOM API | 1,218d (3.3y) |
| html.elements.script.nomodule | HTML | 246d |
| html.elements.script.type.module | HTML | 408d (1.1y) |
| javascript.operators.import | JS | 531d (1.5y) |
| javascript.operators.import_meta | JS | 225d |
| javascript.operators.import_meta.resolve | JS | 206d |
| javascript.statements.export | JS | 408d (1.1y) |
| javascript.statements.export.arbitrary_module_namespace_identifier_names | JS | 97d |
| javascript.statements.export.default | JS | 408d (1.1y) |
| javascript.statements.export.namespace | JS | 818d (2.2y) |
| javascript.statements.import | JS | 408d (1.1y) |
| javascript.statements.import.arbitrary_module_namespace_identifier_names | JS | 97d |
| javascript.statements.import.import_attributes | JS | 505d (1.4y) |
| javascript.statements.import.worklet_support | JS | 1,269d (3.5y) limbo |