Skip to content
Commit Detail

Commit e1d74db

Author
Kenton Varda <kenton@cloudflare.com> 2025-05-03 16:21:52 -0500
Parents
75934c4
Tree
1c5a417
Refactor: Worker::Script::ModuleSource no longer contain a callback.

Instead, it contains a representation of the source code.

This refactoring is needed to support dynamic code loading, which won't necessarily originate from a workerd config.

This diff is large, but it's mostly just changing code which previosuly switched on config::Worker::Module::Reader (a capnp union) to instead switch on Worker::Script::Module (a OneOf). The details are straightforward.

Files changed