Web features explorer

JavaScript modules in workers

Newly available since 2023-06-06
Tags: api javascript Groups: JavaScript modules

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

Browser support

Specifications