@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.14.2 to 7.14.4
@@ -181,2 +181,13 @@ "use strict"; | ||
keyExpression = _core.types.arrayExpression(keys); | ||
if (!_core.types.isProgram(path.scope.block)) { | ||
const program = path.findParent(path => path.isProgram()); | ||
const id = path.scope.generateUidIdentifier("excluded"); | ||
program.scope.push({ | ||
id, | ||
init: keyExpression, | ||
kind: "const" | ||
}); | ||
keyExpression = _core.types.cloneNode(id); | ||
} | ||
} | ||
@@ -183,0 +194,0 @@ |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.14.2", | ||
"version": "7.14.4", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/compat-data": "^7.14.0", | ||
"@babel/helper-compilation-targets": "^7.13.16", | ||
"@babel/compat-data": "^7.14.4", | ||
"@babel/helper-compilation-targets": "^7.14.4", | ||
"@babel/helper-plugin-utils": "^7.13.0", | ||
@@ -31,5 +31,5 @@ "@babel/plugin-syntax-object-rest-spread": "^7.8.3", | ||
"devDependencies": { | ||
"@babel/core": "7.14.2", | ||
"@babel/core": "7.14.3", | ||
"@babel/helper-plugin-test-runner": "7.13.10" | ||
} | ||
} |
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
19686
397
1
+ Addedcaniuse-lite@1.0.30001620(transitive)
- Removedcaniuse-lite@1.0.30001618(transitive)
- Removedelectron-to-chromium@1.4.769(transitive)
Updated@babel/compat-data@^7.14.4