文件名称:microfill:只为缺失的 gabs 加载 polyfill
文件大小:134KB
文件格式:ZIP
更新时间:2024-06-26 01:44:15
JavaScript
微填充 只为缺失的 gabs 加载 polyfill。 它是如何工作的 Microfill 将您的 javascript 文件替换为如下所示的文件: ; ( function ( ) { var n = 0 ; if ( ! window . setImmediate ) n += 1 << 0 ; if ( ! window . Promise ) n += 1 << 1 ; if ( ! window . fetch ) n += 1 << 2 ; if ( ! window . WeakMap || ! window . Map || ! window . Set ) n += 1 << 3 ; var script = document . createElement ( "script" ) ; script . src = "file-" + n . toSt
【文件预览】:
microfill-master
----package.json(874B)
----readme.md(2KB)
----gulpfile.js(1KB)
----tests()
--------basic()
--------empty()
----.npmignore(48B)
----tsconfig.json(147B)
----.gitignore(20B)
----tsd.json(624B)
----typings()
--------tsd.d.ts(218B)
--------yargs()
--------node()
--------es6-promise()
--------diff()
--------chalk()
----lib()
--------compiler.ts(1KB)
--------utils.ts(820B)
--------loader-emitter.ts(3KB)
--------bundler.ts(2KB)
--------polyfill-reader.ts(987B)
--------test.ts(4KB)
--------bundle-emitter.ts(1KB)
--------typings-fix.d.ts(304B)
--------emitter.ts(226B)
--------polyfills.ts(2KB)
--------file.ts(324B)
--------compile.ts(976B)
--------index.ts(396B)