@babel/plugin-transform-spread
Advanced tools
Comparing version 7.12.1 to 7.12.13
@@ -99,3 +99,7 @@ "use strict"; | ||
const calleePath = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("callee")); | ||
if (calleePath.isSuper()) return; | ||
if (calleePath.isSuper()) { | ||
throw path.buildCodeFrameError("It's not possible to compile spread arguments in `super()` without compiling classes.\n" + "Please add '@babel/plugin-transform-classes' to your Babel configuration."); | ||
} | ||
let contextLiteral = scope.buildUndefinedNode(); | ||
@@ -102,0 +106,0 @@ node.arguments = []; |
{ | ||
"name": "@babel/plugin-transform-spread", | ||
"version": "7.12.1", | ||
"version": "7.12.13", | ||
"description": "Compile ES2015 spread to ES5", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.10.4", | ||
"@babel/helper-plugin-utils": "^7.12.13", | ||
"@babel/helper-skip-transparent-expression-wrappers": "^7.12.1" | ||
@@ -27,5 +27,6 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.12.1", | ||
"@babel/helper-plugin-test-runner": "7.10.4" | ||
} | ||
"@babel/core": "7.12.13", | ||
"@babel/helper-plugin-test-runner": "7.12.13" | ||
}, | ||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-spread" | ||
} |
@@ -5,3 +5,3 @@ # @babel/plugin-transform-spread | ||
See our website [@babel/plugin-transform-spread](https://babeljs.io/docs/en/next/babel-plugin-transform-spread.html) for more information. | ||
See our website [@babel/plugin-transform-spread](https://babeljs.io/docs/en/babel-plugin-transform-spread) for more information. | ||
@@ -8,0 +8,0 @@ ## Install |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6824
133
0