import-lazy:延迟导入模块

时间:2021-05-26 07:48:58
【文件属性】:
文件名称:import-lazy:延迟导入模块
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-26 07:48:58
JavaScript 懒惰的 延迟导入模块 安装 $ npm install import-lazy 用法 // Pass in `require` or a custom import function const importLazy = require ( 'import-lazy' ) ( require ) ; const _ = importLazy ( 'lodash' ) ; // Instead of referring to its exported properties directly… _ . isNumber ( 2 ) ; // …it's cached on consecutive calls _ . isNumber ( 'unicorn' ) ; // Works out of the box for functions and regular properties co
【文件预览】:
import-lazy-main
----.gitignore(23B)
----package.json(618B)
----.npmrc(19B)
----index.js(859B)
----test.js(986B)
----.github()
--------security.md(179B)
--------workflows()
--------funding.yml(117B)
----license(1KB)
----readme.md(2KB)
----index.test-d.ts(186B)
----.gitattributes(19B)
----fixtures()
--------foo.js(44B)
--------baz.js(60B)
--------foo.bar.js(126B)
--------fail.js(62B)
--------class.js(106B)
----.editorconfig(175B)
----index.d.ts(630B)

网友评论