JavaScript modules in shared workers
The SharedWorker() constructor accepts { type: "module" } to load scripts that use import and export. Also known as ECMAScript modules or ESM in shared workers.
Status
Baseline Newly Available (since 2026-05-05)
This feature is expected to reach Baseline Widely Available status on: 2028-11-05
MDN documentation
Specifications
Browser support
- Chrome 80 Released on 2020-02-04
- Chrome Android 148 Released on 2026-05-05
- Edge 80 Released on 2020-02-07
- Firefox 114 Released on 2023-06-06
- Firefox for Android 114 Released on 2023-06-06
- Safari 16 Released on 2022-09-12
- Safari on iOS 16 Released on 2022-09-12
Usage (according to Chrome Platform Status)
~0.601% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist