没有合适的资源?快使用搜索试试~ 我知道了~
babel-plugin-closure-elimination:一个Babel插件,可在任何情况下消除JavaScript的闭...
共103个文件
js:94个
md:2个
json:2个
需积分: 10 0 下载量 42 浏览量
2021-05-11
21:34:46
上传
评论
收藏 222KB ZIP 举报
温馨提示
消除通天塔关闭 这是一个插件,以性能的名义消除了JavaScript中不必要的闭包。 注意:现在需要Babel 6。 什么? 变成这样的代码: function demo ( input ) { return input . map ( item => item + 1 ) . map ( item => item + 2 ) ; } 变成这样的代码: function _ref ( item ) { return item + 1 ; } function _ref2 ( item ) { return item + 2 ; } function demo ( input ) { return input . map ( _ref ) . map ( _ref2 ) ; } 为什么? 因为在它更快,内存效率更高,并且意味着您可以在大多数情况下安全地使用箭头功能
资源推荐
资源详情
资源评论
收起资源包目录
babel-plugin-closure-elimination:一个Babel插件,可在任何情况下消除JavaScript的闭包 (103个子文件)
.babelrc 80B
.gitignore 37B
jquery-3.1.1.{'parserOpts'_{'sourceType'_'script'},'compact'_false}.js 262KB
jquery-3.1.1.js 261KB
index.js 6KB
index.js 6KB
extended-class-from-known-class.js 3KB
extended-class-from-outer-parent.js 3KB
this-in-async-arrow.{'presets'_['latest']}.js 1KB
class-complex.js 1KB
class-compiled.js 1KB
complex.js 1KB
class-compiled.js 1KB
class.js 1KB
create-class.js 1KB
complex.js 1KB
issue-25.{'plugins'_['transform-async-to-generator']}.js 953B
issue-28-minimal.{'plugins'_['transform-regenerator']}.js 797B
generator.js 779B
issue-26.js 767B
async.js 542B
self-use-declaration.{}.js 524B
extended-class-from-known-class.{}.js 523B
object-shorthand-func.js 509B
extended-class-from-outer-parent.{}.js 485B
object-shorthand-func.{'plugins'_['transform-es2015-destructuring']}.js 473B
conditional-function.js 466B
assign-expression-and-referenced.js 465B
issue-25.js 431B
self-use-declaration.js 429B
no-block-statement.{}.js 409B
class-complex.{}.js 404B
assign-expression.js 397B
assign-expression-and-referenced.js 376B
extended-class-from-known-class.js 369B
no-block-statement.js 367B
issue-26.{}.js 357B
arrow-this-deep-nested.js 345B
extended-class-from-outer-parent.js 330B
conditional-function.js 324B
no-function-scope.js 319B
create-class.{}.js 319B
create-class.{'presets'_['babel-preset-es2015-node5']}.js 319B
arrow-this-nested.js 302B
class.{}.js 298B
assign-expression.js 283B
object-shorthand-func.js 268B
shadow-declaration.js 266B
issue-28-minimal.js 264B
same-name-in-parent-scope.{}.js 258B
possible-scope-hoisting.js 254B
simple.js 253B
class-complex.js 252B
inner-2.js 241B
simple.js 238B
issue-26.js 235B
arrow-this-nested.{}.js 232B
no-function-scope.js 230B
assign-expression-array-pattern.js 228B
declaration.js 227B
arrow-this-deep-nested.js 212B
eval-deopt.js 205B
eval-no-deopt.js 204B
shadow-declaration.js 203B
arrow-this-nested.js 199B
inner-1.js 199B
create-class.js 194B
same-name-in-parent-scope.js 190B
arrow-this.js 189B
inner-2.js 188B
generator.js 187B
issue-25.{}.js 185B
class.js 182B
nope.js 181B
no-module.{'parserOpts'_{'sourceType'_'script'}}.js 170B
possible-scope-hoisting.js 169B
nope.js 169B
test-polyfill.js 166B
declaration.js 165B
twice.js 165B
no-module.js 153B
inner-1.js 150B
no-module.js 146B
async.js 143B
assign-expression-array-pattern.js 142B
arrow-this.{}.js 141B
eval-no-deopt.js 123B
eval-deopt.js 116B
twice.js 115B
issue-25.js 106B
iife.js 105B
no-hoist.js 101B
this-in-async-arrow.js 96B
arrow-this.js 95B
no-hoist.js 89B
iife.js 87B
package-lock.json 90KB
package.json 2KB
README.md 1KB
LICENSE.md 1KB
共 103 条
- 1
- 2
资源评论
FriedrichZHAO
- 粉丝: 27
- 资源: 4531
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功