@babel/plugin-transform-classes
Advanced tools
Comparing version 7.14.9 to 7.15.4
@@ -119,3 +119,3 @@ "use strict"; | ||
} = classState; | ||
constructorBody.body = constructorBody.body.concat(userConstructor.body.body); | ||
constructorBody.body.push(...userConstructor.body.body); | ||
@@ -563,3 +563,3 @@ _core.types.inherits(construct, userConstructor); | ||
extractDynamicKeys(); | ||
let { | ||
const { | ||
body | ||
@@ -577,3 +577,3 @@ } = classState; | ||
body = body.concat(classState.staticPropBody.map(fn => fn(_core.types.cloneNode(classState.classRef)))); | ||
body.push(...classState.staticPropBody.map(fn => fn(_core.types.cloneNode(classState.classRef)))); | ||
const isStrict = path.isInStrictMode(); | ||
@@ -580,0 +580,0 @@ let constructorOnly = classState.classId && body.length === 1; |
{ | ||
"name": "@babel/plugin-transform-classes", | ||
"version": "7.14.9", | ||
"version": "7.15.4", | ||
"description": "Compile ES2015 classes to ES5", | ||
@@ -17,8 +17,8 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-annotate-as-pure": "^7.14.5", | ||
"@babel/helper-function-name": "^7.14.5", | ||
"@babel/helper-optimise-call-expression": "^7.14.5", | ||
"@babel/helper-annotate-as-pure": "^7.15.4", | ||
"@babel/helper-function-name": "^7.15.4", | ||
"@babel/helper-optimise-call-expression": "^7.15.4", | ||
"@babel/helper-plugin-utils": "^7.14.5", | ||
"@babel/helper-replace-supers": "^7.14.5", | ||
"@babel/helper-split-export-declaration": "^7.14.5", | ||
"@babel/helper-replace-supers": "^7.15.4", | ||
"@babel/helper-split-export-declaration": "^7.15.4", | ||
"globals": "^11.1.0" | ||
@@ -33,5 +33,5 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "7.14.8", | ||
"@babel/core": "7.15.4", | ||
"@babel/helper-plugin-test-runner": "7.14.5", | ||
"@babel/traverse": "7.14.9" | ||
"@babel/traverse": "7.15.4" | ||
}, | ||
@@ -38,0 +38,0 @@ "engines": { |
26053