buble
buble copied to clipboard
a fork of buble with some vue-specific hacks, used in vue-template-es2015-compiler
babel-plugin-transform-vue-jsx 好像不支持啊
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR aeb3e27 1.2.5...
The yyx990803/buble fork of Bublé exists mostly for Vue template compilers to call it over generated source code. When it emits an error, that error includes - .loc : the...
for https://github.com/vuejs/vue-template-es2015-compiler/issues/17
Bumps [acorn](https://github.com/acornjs/acorn) from 5.4.1 to 5.7.4. Commits 6370e90 Mark version 5.7.4 fbc15b1 More rigorously check surrogate pairs in regexp validator 910e62b Mark version 5.7.3 3442a80 Make generate-identifier-regex capable of rewriting...
https://github.com/yyx990803/buble/blob/368bf86df7c6b5a4afde14f5cd0ec9f27ece9c15/src/utils/globals.js#L3 不应该在解除`with`的编译过程中,把这些直接作为特例排除、编译成全局变量,因为它们很有可能是实例属性。比较好的做法可能是统统编译为`this.xxx`,然后在`Vue.prototype.xxx`中添加它们兜底。 (目前Vue需要记忆的隐秘特例实在有些多了,比如组件名与原生元素同名,会直接跳过组件是否存在的检测,而直接当作原生元素对待。哪怕用大写模式回避,但SVG类元素是无视这一点的(所以``作为template是不行的),而SVG元素的清单又特别难记而且长。但由于官网建议用包含`-`的字段作为组件名,所以只是刻意回避好名字有些麻烦,而且毕竟还有编译警告。) 而这次的实例属性特例问题,可能就突出一些了。这个清单不看源码不知道,而且文档没写意味着它可能是随时可变的。特别是`Intl`,我用了十年JS,刚知道还有这个东西。而且没有编译警告,所以不知道的人出错了要排查是非常困难的,排查出来以后也会有些影响Vue的口碑。
There's a transpilation problem in buble version 0.19.7 and under, which it incorrectly transpiles an object that has string-keyed properties with whitespaces before colons after a computed property. ```vue ```...