Web platform features explorer

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

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.

Developer 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.