JavaScript modules in shared workers
Limited availability
Tags:
api
Groups:
JavaScript modules
The SharedWorker()
constructor accepts { type: "module" }
to load scripts that use import
and export
. Also known as ECMAScript modules or ESM in shared workers.
Compatibility
- Chrome 80 Released on 2020-02-04
- Chrome Android ❌ Search for bugs Search for Chromestatus entry
- 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 (17 months)