@plumeria/compiler 18.3.14 → 18.3.16

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 +7 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -588,7 +588,13 @@ function compileCSS(options) {
588
588
  ctx.mergedCreateTable[rootId] !== undefined ||
589
589
  ctx.mergedVariantsTable[rootId] !== undefined);
590
590
  if (!isPlumeriaStyle) {
591
- throw new Error(`[plumeria] Dynamic or unresolvable style object "${getSource(node)}" is not supported. (${path.basename(resourcePath)})`);
591
+ const origin = rootId ? localImports[rootId] : undefined;
592
+ const failure = origin
593
+ ? (0, utils_1.resolveFileError)(origin.actualPath, origin.importedName)
594
+ : undefined;
595
+ throw new Error(failure
596
+ ? `[plumeria] ${failure.message} (${path.basename(failure.filePath)})`
597
+ : `[plumeria] Dynamic or unresolvable style object "${getSource(node)}" is not supported. (${path.basename(resourcePath)})`);
592
598
  }
593
599
  }
594
600
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/compiler",
3
- "version": "18.3.14",
3
+ "version": "18.3.16",
4
4
  "description": "Plumeria swc based compiler for statically extracting css",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -21,12 +21,12 @@
21
21
  "dist/"
22
22
  ],
23
23
  "dependencies": {
24
- "@plumeria/utils": "^18.3.14"
24
+ "@plumeria/utils": "^18.3.16"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@rust-gear/glob": "1.1.1",
28
28
  "@swc/core": "1.15.47",
29
- "zss-engine": "2.6.0"
29
+ "zss-engine": "2.7.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public",