Comparing version 0.17.1 to 0.17.2
# buble changelog | ||
## 0.17.2 | ||
* Fix nested template literals regression ([#39](https://github.com/Rich-Harris/buble/issues/39)) | ||
## 0.17.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "buble", | ||
"version": "0.17.1", | ||
"version": "0.17.2", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -65,3 +65,3 @@ "main": "dist/buble.umd.js", | ||
"acorn-jsx": "^3.0.1", | ||
"acorn5-object-spread": "^4.0.0", | ||
"acorn5-object-spread": "^4.0.0", | ||
"magic-string": "^0.22.4", | ||
@@ -68,0 +68,0 @@ "minimist": "^1.2.0", |
@@ -5,2 +5,4 @@ import Node from '../Node.js'; | ||
transpile ( code, transforms ) { | ||
super.transpile( code, transforms ); | ||
if ( transforms.templateString && this.parent.type !== 'TaggedTemplateExpression' ) { | ||
@@ -32,2 +34,3 @@ let ordered = this.expressions.concat( this.quasis ) | ||
const parenthesise = ( this.quasis.length !== 1 || this.expressions.length !== 0 ) && | ||
this.parent.type !== 'TemplateLiteral' && | ||
this.parent.type !== 'AssignmentExpression' && | ||
@@ -66,5 +69,3 @@ this.parent.type !== 'AssignmentPattern' && | ||
} | ||
super.transpile( code, transforms ); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3879311
37661