@plumeria/compiler 17.0.1 → 18.0.0

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 +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -362,7 +362,7 @@ function compileCSS(options) {
362
362
  const records = (0, utils_1.getStyleRecords)(style);
363
363
  records.forEach((r) => extractedSheets.push(r.sheet));
364
364
  };
365
- const extractAndProcessConditionals = (args, isStyleName = false) => {
365
+ const extractAndProcessConditionals = (args, isStyleProp = false) => {
366
366
  args.forEach((arg) => {
367
367
  if (utils_1.t.isIdentifier(arg.expression) &&
368
368
  localStyleAliases[arg.expression.value]) {
@@ -498,7 +498,7 @@ function compileCSS(options) {
498
498
  return false;
499
499
  };
500
500
  const checkFunctionKey = (node) => {
501
- if (isStyleName)
501
+ if (isStyleProp)
502
502
  return;
503
503
  if (utils_1.t.isCallExpression(node) &&
504
504
  utils_1.t.isMemberExpression(node.callee) &&
@@ -511,7 +511,7 @@ function compileCSS(options) {
511
511
  if (typeof atomMap === 'object' &&
512
512
  atomMap !== null &&
513
513
  '__cssVars__' in atomMap) {
514
- throw new Error(`[plumeria] css.use(${getSource(node)}) cannot handle dynamic style functions. Use styleName instead.\n`);
514
+ throw new Error(`[plumeria] css.use(${getSource(node)}) cannot handle dynamic style functions. Use ${styleProp} instead.\n`);
515
515
  }
516
516
  }
517
517
  if (node.type === 'ConditionalExpression') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "17.0.1",
3
+ "version": "18.0.0",
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": "^17.0.1"
24
+ "@plumeria/utils": "^18.0.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rust-gear/glob": "1.1.0",