文件名称:autopolyfiller:Autopolyfiller-精确的polyfill。 这就像Autoprefixer,但适用于JavaScript polyfills
文件大小:176KB
文件格式:ZIP
更新时间:2024-05-02 17:07:13
JavaScript
:warning: 此存储库不再维护。 作为替换使用 Autopolyfiller —精确的polyfills 这类似于 ,但适用于JavaScript 。 它会扫描您的代码,并仅应用所需的polyfill。 。 假设您的代码是Object.keys(window) 。 需要Object.keys polyfill才能(包括IE7)中运行它。 另一方面,该代码可以在没有任何polyfill的iOS 7 Safari上执行。 AutoPolyfiller知道ES5和ES6功能及其在浏览器中的支持。 它可以帮助您编写前沿JavaScript,而无需考虑ES填充和填充。 这个怎么运作。 一步步: 使用AST匹配器,它会扫描您的代码并找到所有的polyfills 如果指定了目标浏览器,那么它将根据“功能数据库”减少polyfill的列表 它使用生成polyfills代码,该代码可精确修复仅所需的功
【文件预览】:
autopolyfiller-master
----.gitignore(38B)
----README.md(6KB)
----.jscsrc(234B)
----CHANGELOG.md(621B)
----bin()
--------autopolyfiller(205B)
----test()
--------test.autopolyfiler.js(7KB)
--------test.cli.js(15KB)
--------fixtures()
--------test.polyfill-scan.js(4KB)
--------test.polyfill-reduce.js(2KB)
--------test.polyfill-code.js(1KB)
--------test.polyfill-wrap.js(2KB)
----CONTRIBUTION.md(3KB)
----LICENSE(1KB)
----.jshintrc(395B)
----package.json(2KB)
----.jshintignore(98B)
----AUTHORS(36B)
----benchmark()
--------README.md(45B)
--------scan()
----index.js(6KB)
----images()
--------autopolyfiller.svg(8KB)
--------autopolyfiller.jpg(29KB)
--------autopolyfiller.min.svg(8KB)
--------favicon.ico(1KB)
----.travis.yml(184B)
----.editorconfig(263B)
----index.html(4KB)
----lib()
--------cli.js(6KB)
--------polyfill-code()
--------polyfill-wrap()
--------polyfill-scan()
--------polyfill-reduce()
----example_assets()
--------index.browserify.js(106KB)
--------index.css(989B)
--------index.js(1KB)