@plumeria/compiler 19.2.15 → 19.2.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.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -636,7 +636,7 @@ function compileCSS(options) {
|
|
|
636
636
|
const argExpr = callArgs[0]?.expression;
|
|
637
637
|
if (callArgs.length > 1 ||
|
|
638
638
|
(argExpr && argExpr.type !== 'ObjectExpression')) {
|
|
639
|
-
throw new Error(`[plumeria] ${getSource(expr)} takes one object argument, because ${callee.property.value} destructures its parameter
|
|
639
|
+
throw new Error(`[plumeria] ${getSource(expr)} takes one object argument, because ${callee.property.value} destructures its parameter. (${path.basename(resourcePath)})\n`);
|
|
640
640
|
}
|
|
641
641
|
const given = new Map();
|
|
642
642
|
(argExpr?.properties ?? []).forEach((prop) => {
|
|
@@ -656,7 +656,7 @@ function compileCSS(options) {
|
|
|
656
656
|
if (!source) {
|
|
657
657
|
if (func.defaults?.[local])
|
|
658
658
|
return;
|
|
659
|
-
throw new Error(`[plumeria] ${getSource(expr)} leaves "${key}" unset, and a dynamic style function has no value to fall back on
|
|
659
|
+
throw new Error(`[plumeria] ${getSource(expr)} leaves "${key}" unset, and a dynamic style function has no value to fall back on. (${path.basename(resourcePath)})\n`);
|
|
660
660
|
}
|
|
661
661
|
if (isStaticArgValue(source) && argObj[key] !== undefined) {
|
|
662
662
|
tempStaticTable[local] = argObj[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/compiler",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.16",
|
|
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.2.
|
|
24
|
+
"@plumeria/utils": "19.2.16"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@rust-gear/glob": "1.2.1",
|