Commit f6b9b9dd by Rich Harris

-> v0.15.2

parent e6bbedfe
Pipeline #5708613 passed with stage
in 1 minute 21 seconds
# buble changelog # buble changelog
## 0.15.2
* Don't create function names for object methods with `namedFunctionExpressions: false`
* Simplify destructuring assignment statements
* Give unique names to methods that shadow free variables ([#166](https://gitlab.com/Rich-Harris/buble/issues/166))
## 0.15.1 ## 0.15.1
* Fix `Object.assign` regression ([#163](https://gitlab.com/Rich-Harris/buble/issues/163)) * Fix `Object.assign` regression ([#163](https://gitlab.com/Rich-Harris/buble/issues/163))
......
{ {
"name": "buble", "name": "buble",
"version": "0.15.1", "version": "0.15.2",
"description": "The blazing fast, batteries-included ES2015 compiler", "description": "The blazing fast, batteries-included ES2015 compiler",
"main": "dist/buble.umd.js", "main": "dist/buble.umd.js",
"jsnext:main": "dist/buble.es.js", "jsnext:main": "dist/buble.es.js",
......
...@@ -142,7 +142,7 @@ export default class ClassBody extends Node { ...@@ -142,7 +142,7 @@ export default class ClassBody extends Node {
code.insertRight( method.start, lhs ); code.insertRight( method.start, lhs );
const funcName = method.computed || isAccessor || !namedFunctions ? '' : `${methodName} ` const funcName = method.computed || isAccessor || !namedFunctions ? '' : `${methodName} `;
const rhs = ( isAccessor ? `.${method.kind}` : '' ) + ` = function` + ( method.value.generator ? '* ' : ' ' ) + funcName; const rhs = ( isAccessor ? `.${method.kind}` : '' ) + ` = function` + ( method.value.generator ? '* ' : ' ' ) + funcName;
code.remove( c, method.value.start ); code.remove( c, method.value.start );
code.insertRight( method.value.start, rhs ); code.insertRight( method.value.start, rhs );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment