@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 +15 -2
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +15 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
- package/src/evaluate.ts +15 -2
- package/tests/evaluate.test.ts +3 -0
package/dist/plugin.js
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
|
-
|
|
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;
|