@riotjs/compiler
Advanced tools
Comparing version 4.3.0 to 4.3.1
# Compiler Changes | ||
### v4.3.1 | ||
- Fix https://github.com/riot/riot/issues/2719 | ||
- Fix https://github.com/riot/riot/issues/2723 | ||
### v4.3.0 | ||
@@ -4,0 +8,0 @@ - Add support for dynamic import |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Compiler for riot .tag files", | ||
@@ -38,3 +38,3 @@ "main": "dist/index.js", | ||
"coveralls": "^3.0.4", | ||
"eslint": "^6.0.0", | ||
"eslint": "^6.0.1", | ||
"eslint-config-riot": "^2.0.0", | ||
@@ -44,8 +44,8 @@ "esm": "^3.2.25", | ||
"nyc": "^14.1.1", | ||
"rollup": "^1.16.2", | ||
"rollup": "^1.16.3", | ||
"rollup-plugin-alias": "^1.5.2", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-commonjs": "^10.0.1", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-resolve": "^5.0.4", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"shelljs": "^0.8.3" | ||
@@ -61,3 +61,3 @@ }, | ||
"@riotjs/dom-bindings": "^4.2.2", | ||
"@riotjs/parser": "^4.0.1", | ||
"@riotjs/parser": "^4.0.2", | ||
"acorn": "^6.1.1", | ||
@@ -64,0 +64,0 @@ "acorn-dynamic-import": "^4.0.0", |
@@ -22,2 +22,3 @@ import { | ||
import { | ||
isBinaryExpression, | ||
isBrowserAPI, | ||
@@ -110,3 +111,5 @@ isBuiltinAPI, | ||
if (!isGlobal({ node: path.node.object, scope: path.scope })) { | ||
if (path.value.computed) { | ||
if (isBinaryExpression(path.node.object)) { | ||
this.traverse(path.get('object')) | ||
} else if (path.value.computed) { | ||
this.traverse(path) | ||
@@ -142,3 +145,3 @@ } else { | ||
* @param { types.NodePath } path - containing the current node visited | ||
* @returns { boolean } return false if we want to stop the tree traversal | ||
* @returns { boolean|undefined } return false if we want to stop the tree traversal | ||
*/ | ||
@@ -150,2 +153,3 @@ function visitThisExpression(path) { | ||
/** | ||
@@ -152,0 +156,0 @@ * Update the scope of the global nodes |
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
1456677
37008
Updated@riotjs/parser@^4.0.2