Web platform features explorer

JavaScript modules in workers

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

Status

Baseline Newly Available (since 2023-06-06)

This feature is expected to reach Baseline Widely Available status on: 2025-12-06

Specifications

Browser support

  • Chrome 80 Released on 2020-02-04
  • Chrome Android 80 Released on 2020-02-04
  • Edge 80 Released on 2020-02-07
  • Firefox 114 Released on 2023-06-06
  • Firefox for Android 114 Released on 2023-06-06
  • Safari 15 Released on 2021-09-20
  • Safari on iOS 15 Released on 2021-09-20

Usage (according to Chrome Platform Status)

~0.760% of page loads. More data at chromestatus.

Interop