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
Limited availability
MDN documentation
Specifications
Browser support
- Chrome 80 Released on 2020-02-04
- Chrome Android ❌
- 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
Baseline availability blocked since June 2023 by Chrome Android (30 months)
Usage (according to Chrome Platform Status)
~0.575% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper signals
Votes: 0
If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist