← Back to release summary

ES Modules for dedicated workers ('module' type option)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 80)
Intent stage
None

Summary

JavaScript will support modules in dedicated workers. Using a new value for the constructor's type attribute, worker scripts are loaded as ES modules and the import statement is available on worker contexts. With this feature, web developers can more easily write programs in a composable way and share them among a page and workers.

Standards & signals

Docs: https://web.dev/module-workers/

View on chromestatus.com