JavaScript modules are now supported on Cloudflare Workers
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.
Company
Cloudflare
Date published
Nov. 16, 2021
Author(s)
Ashcon Partovi
Word count
1269
Language
English
Hacker News points
16