文件名称:import-lazy:延迟导入模块
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-15 01:35:38
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)