addModule method

JSPromise<JSAny?> addModule(
  1. String moduleURL, [
  2. WorkletOptions options
])

The addModule() method of the Worklet interface loads the module in the given JavaScript file and adds it to the current Worklet.

Implementation

external JSPromise<JSAny?> addModule(
  String moduleURL, [
  WorkletOptions options,
]);