Content Deep Dive
JavaScript modules are now supported on Cloudflare Workers
Blog post from Cloudflare
Post Details
Company
Date Published
Author
Ashcon Partovi
Word Count
1,269
Language
English
Hacker News Points
16
Summary
Cloudflare Workers now supports JavaScript modules, allowing developers to import and export code in their projects. This feature is based on the ECMAScript (ES) module standard introduced by the "ES6" language specification for JavaScript. The new event handler syntax allows for better organization, maintenance, and re-use of code. Cloudflare Workers also supports other module types such as WebAssembly, text, and binary modules. Developers can try out modules in their browser using the playground or by using the wrangler 2.0 CLI.