Web platform features explorer

JavaScript modules in service workers

The navigator.serviceWorker.register() method accepts { type: "module" } to load scripts that use import and export. Also known as ECMAScript modules or ESM in service workers.

Status

Baseline Newly Available (since 2026-01-13)

This feature is expected to reach Baseline Widely Available status on: 2028-07-13

Browser support

  • Chrome 91 Released on 2021-05-25
  • Chrome Android 91 Released on 2021-05-25
  • Edge 91 Released on 2021-05-27
  • Firefox 147 Released on 2026-01-13
  • Firefox for Android 147 Released on 2026-01-13
  • Safari 15 Released on 2021-09-20
  • Safari on iOS 15 Released on 2021-09-20

Developer signals

Votes: 5

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.