workerize-loader::building_construction:自动将模块移至Web Worker(Webpac...

工人装载机一个Webpack加载器,它将模块及其依赖项移动到Web Worker中,自动将导出的功能反映为异步代理。将微型的专用RPC实现捆绑到您的应用中如果导出的模块方法已经异步,则签名不变支持同步和异步工作程序功能与async / await完美搭配导入的值是可实例化的,只是一个装饰Worker安装npm install -D workerize-loader用法worker.js : // block for `time` ms, then return the number of loops we could run in that time: export
zip
workerize-loader-master.zip 预估大小:13个文件
folder
workerize-loader-master 文件夹
file
.gitignore 71B
file
README.md 7KB
folder
.github 文件夹
folder
workflows 文件夹
file
main.yml 371B
folder
test 文件夹
folder
src 文件夹
file
index.test.js 3KB
file
worker.js 241B
file
other.js 57B
file
package.json 1KB
folder
src 文件夹
file
rpc-wrapper.js 757B
file
index.js 5KB
file
rpc-worker-loader.js 979B
file
.travis.yml 141B
file
.editorconfig 236B
file
webpack.config.js 104B
zip 文件大小:10.65KB