addModule

suspend fun addModule(moduleURL: String, options: WorkletOptions = definedExternally)(source)

The addModule() method of the adds it to the current Worklet.

MDN Reference


suspend fun addModule(moduleURL: URL, options: WorkletOptions = definedExternally)(source)