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
workerize-loader-master.zip
预估大小:13个文件
workerize-loader-master
文件夹
.gitignore
71B
README.md
7KB
.github
文件夹
workflows
文件夹
main.yml
371B
test
文件夹
src
文件夹
index.test.js
3KB
worker.js
241B
10.65KB
文件大小:
评论区