@hypergood/css-core 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/plugin.cjs CHANGED
@@ -67503,8 +67503,21 @@ function evaluateObjectExpression(node, knownConstants) {
67503
67503
  switch (property.type) {
67504
67504
  case "ObjectMethod":
67505
67505
  return UNKNOWN(property);
67506
- case "SpreadElement":
67507
- return UNKNOWN(property);
67506
+ case "SpreadElement": {
67507
+ const values = evaluateBabelExpression(
67508
+ property.argument,
67509
+ knownConstants
67510
+ );
67511
+ if (values.confident) {
67512
+ result = {
67513
+ ...result,
67514
+ ...values.value
67515
+ };
67516
+ continue;
67517
+ } else {
67518
+ return UNKNOWN(property);
67519
+ }
67520
+ }
67508
67521
  case "ObjectProperty": {
67509
67522
  const keyNode = property.key;
67510
67523
  let key2;