moduleHandler property

_JsAsyncModuleHandler? moduleHandler
final

Asynchronously handler to manage js module.

QuickJS resolves imports synchronously, so every module this handler serves costs a round trip to the spawning isolate while the worker is parked. Prefer bundle (or moduleSources) whenever the import graph is known up front; keep this handler for genuinely dynamic resolution.

Implementation

final _JsAsyncModuleHandler? moduleHandler;