diff --git a/site/source/docs/api_reference/module.rst b/site/source/docs/api_reference/module.rst index 691a8cf775357..fce188666f74d 100644 --- a/site/source/docs/api_reference/module.rst +++ b/site/source/docs/api_reference/module.rst @@ -153,7 +153,7 @@ The following ``Module`` attributes affect code execution. Set them to customize .. js:attribute:: Module.mainScriptUrlOrBlob - Allows pthread workers or WASM workers to independently load up the main application module JavaScript file (e.g. main.js) from a URL or blob. Creation of pthread workers or WASM workers need to load the main application module JavaScript file (e.g. main.js). By default, they load the content of main.js from the URL of main.js. However, if the main.js file was loaded from a Blob, it is not possible to access the URL of the main.js. Also, when main.js is bundled by a Node.JS module bundler (e.g. webpack), the URL of that script can be wrong, the URL after webpack bundler will result in wrong URL like main.chunk.js + Allows pthread workers to independently load up the main file (e.g. main.js) from a URL or blob. New pthread workers need to load the main JavaScript file (e.g. main.js). By default, they load the content of main.js from the URL of main.js. However, if the main.js file was loaded from a Blob, it is not possible to access the URL of the main.js. Also, when main.js is bundled by a Node.JS module bundler (e.g. webpack), the URL of that script can be wrong, the URL after webpack bundler will result in wrong URL like main.chunk.js Other methods =============