hax / hax/hax.github.com

Babel plugin 体系的缺点

Open
#31 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
HTML
Stars
464
Forks
27
PR merge metrics
No merged PRs in 30d

Description

1. Babel 的 syntax plugins 毫无意义。仅仅是开启 babylon parser 的选项,并没有真正可插拔的语法扩展能力
2. Babel 的 plugins 可以声明直接依赖关系(inherits),但无法声明其他关系(排斥、顺序要求),并且暂时拒绝此提议(https://github.com/thejameskyle/babel-plugin-handbook/issues/17 )
3. Babel 的一些官方 plugins 的职责切分有问题,导致一些微妙的 bug,如
- https://phabricator.babeljs.io/T2776#67632
- https://phabricator.babeljs.io/T6779 (transform-es2015-shorthand-properties 和 transform-es2015-function-name 如何转换包含 super 的 method ?实际上 transform-2015-object-super 应该被合并到 transform-es2015-shorthand-properties,或者从 transform-es2015-shorthand-properties 拆分单独的 transform-es2015-shorthand-methods)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.