@riotjs/compiler
Advanced tools
Comparing version 4.2.5 to 4.2.6
# Compiler Changes | ||
### v4.2.6 | ||
- Fix expression parts issues https://github.com/riot/riot/issues/2701 | ||
### v4.2.5 | ||
@@ -4,0 +7,0 @@ - Fix https://github.com/riot/riot/issues/2700 replacing the `esprima` parser with `acorn` |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "Compiler for riot .tag files", | ||
@@ -59,3 +59,3 @@ "main": "dist/index.js", | ||
"@riotjs/dom-bindings": "^4.1.1", | ||
"@riotjs/parser": "^4.0.0", | ||
"@riotjs/parser": "^4.0.1", | ||
"acorn": "^6.1.1", | ||
@@ -62,0 +62,0 @@ "cumpa": "^1.0.1", |
@@ -25,6 +25,2 @@ import { | ||
return transformExpression(node.expressions[0], sourceFile, sourceCode) | ||
const lastExpression = node.expressions[node.expressions.length - 1] | ||
const tail = sourceCode.substring(lastExpression.end, node.end).replace(/"|'/, '') | ||
const stringsArray = [ | ||
@@ -38,4 +34,3 @@ ...node.parts.reduce((acc, str) => { | ||
] | ||
}, []), | ||
builders.literal(tail) | ||
}, []) | ||
].filter(expr => !isLiteral(expr) || expr.value) | ||
@@ -42,0 +37,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1449427
36866
Updated@riotjs/parser@^4.0.1