@plumeria/compiler 19.1.0 → 19.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -233,10 +233,6 @@ function extractStylesFromExpression(expression, ctx) {
233
233
  results.push(...extractStylesFromExpression(binaryExpr.left, ctx));
234
234
  results.push(...extractStylesFromExpression(binaryExpr.right, ctx));
235
235
  }
236
- else if (expr.type === 'ParenthesisExpression') {
237
- const parenExpr = expr;
238
- results.push(...extractStylesFromExpression(parenExpr.expression, ctx));
239
- }
240
236
  return results;
241
237
  }
242
238
  function compileCSS(options) {
@@ -704,8 +700,6 @@ function compileCSS(options) {
704
700
  });
705
701
  }
706
702
  const resolved = (0, utils_1.resolveDynamicStyle)(func, runtime, tempStaticTable, dynamicTablesOf(ctx), providedParams);
707
- if (!resolved)
708
- return null;
709
703
  const { style } = resolved;
710
704
  return style;
711
705
  };
@@ -818,9 +812,6 @@ function compileCSS(options) {
818
812
  ]);
819
813
  return true;
820
814
  }
821
- else if (node.type === 'ParenthesisExpression') {
822
- return collectConditions(node.expression, currentTestStrings);
823
- }
824
815
  if (collectPropStyles(node))
825
816
  return true;
826
817
  const staticStyle = resolveStyleObject(node) ?? resolveDynamicCall(node);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "19.1.0",
3
+ "version": "19.1.1",
4
4
  "description": "Plumeria swc based compiler for statically extracting css",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "dist/"
22
22
  ],
23
23
  "dependencies": {
24
- "@plumeria/utils": "^19.1.0"
24
+ "@plumeria/utils": "^19.1.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rust-gear/glob": "1.1.1",