diff --git a/package.json b/package.json index 587ea37..e2c1dbd 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ ] }, "dependencies": { - "array-includes": "^3.1.3", - "object.assign": "^4.1.2" + "array-includes": "^3.1.3" } } diff --git a/src/values/expressions/ObjectExpression.js b/src/values/expressions/ObjectExpression.js index 2a5580d..5e460b8 100644 --- a/src/values/expressions/ObjectExpression.js +++ b/src/values/expressions/ObjectExpression.js @@ -1,5 +1,3 @@ -import assign from 'object.assign'; - /** * Extractor function for an ObjectExpression type value node. * An object expression is using {}. @@ -14,7 +12,7 @@ export default function extractValueFromObjectExpression(value) { // Support types: SpreadProperty and ExperimentalSpreadProperty if (/^(?:Experimental)?Spread(?:Property|Element)$/.test(property.type)) { if (property.argument.type === 'ObjectExpression') { - return assign(object, extractValueFromObjectExpression(property.argument)); + return Object.assign(object, extractValueFromObjectExpression(property.argument)); } } else { object[getValue(property.key)] = getValue(property.value);