@bamboocss/node 1.16.0 → 1.17.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.
- package/dist/index.cjs +10 -0
- package/dist/index.mjs +10 -0
- package/package.json +14 -14
package/dist/index.cjs
CHANGED
|
@@ -1654,6 +1654,16 @@ var BambooContext = class extends _bamboocss_generator.Generator {
|
|
|
1654
1654
|
const where = `${entry.filePath}:${entry.line}:${entry.column}`;
|
|
1655
1655
|
const prop = entry.prop ? `\`${entry.prop}\`` : "a property";
|
|
1656
1656
|
const [what, fix] = unresolvedReasons[entry.reason](prop);
|
|
1657
|
+
if (entry.kind === "recipe") {
|
|
1658
|
+
const at = entry.prop ? ` at \`${entry.prop}\`` : "";
|
|
1659
|
+
_bamboocss_logger.logger.warn("recipe", `${where} — ${what}${at}. A recipe's classes are named from a hash of its config, so a declaration the build cannot see gives the build and the browser different names and the element renders with no styles at all. Set \`className\` on the recipe, so its name does not depend on what the build could resolve. See https://bamboocss.com/docs/concepts/recipes`);
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1662
|
+
if (entry.kind === "atomic") {
|
|
1663
|
+
const at = entry.prop ? ` at \`${entry.prop}\`` : "";
|
|
1664
|
+
_bamboocss_logger.logger.warn("css", `${where} — ${what}${at}. The build emits a rule per declaration it can see, and the runtime names a class for every declaration the object actually has — so the ones it could not see have no rule behind them and are simply absent. Write the value out, or generate it with \`staticCss\` if it is genuinely dynamic. See https://bamboocss.com/docs/guides/dynamic-styling`);
|
|
1665
|
+
continue;
|
|
1666
|
+
}
|
|
1657
1667
|
_bamboocss_logger.logger.warn("grouped", `${where} — ${what}. Under \`cssMode: 'grouped'\` one class names the whole \`css()\` call, so this call cannot use one: it falls back to naming each declaration separately and keeps only the ones the build could resolve. ${fix} See https://bamboocss.com/docs/references/config#cssmode`);
|
|
1658
1668
|
}
|
|
1659
1669
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1639,6 +1639,16 @@ var BambooContext = class extends Generator {
|
|
|
1639
1639
|
const where = `${entry.filePath}:${entry.line}:${entry.column}`;
|
|
1640
1640
|
const prop = entry.prop ? `\`${entry.prop}\`` : "a property";
|
|
1641
1641
|
const [what, fix] = unresolvedReasons[entry.reason](prop);
|
|
1642
|
+
if (entry.kind === "recipe") {
|
|
1643
|
+
const at = entry.prop ? ` at \`${entry.prop}\`` : "";
|
|
1644
|
+
logger.warn("recipe", `${where} — ${what}${at}. A recipe's classes are named from a hash of its config, so a declaration the build cannot see gives the build and the browser different names and the element renders with no styles at all. Set \`className\` on the recipe, so its name does not depend on what the build could resolve. See https://bamboocss.com/docs/concepts/recipes`);
|
|
1645
|
+
continue;
|
|
1646
|
+
}
|
|
1647
|
+
if (entry.kind === "atomic") {
|
|
1648
|
+
const at = entry.prop ? ` at \`${entry.prop}\`` : "";
|
|
1649
|
+
logger.warn("css", `${where} — ${what}${at}. The build emits a rule per declaration it can see, and the runtime names a class for every declaration the object actually has — so the ones it could not see have no rule behind them and are simply absent. Write the value out, or generate it with \`staticCss\` if it is genuinely dynamic. See https://bamboocss.com/docs/guides/dynamic-styling`);
|
|
1650
|
+
continue;
|
|
1651
|
+
}
|
|
1642
1652
|
logger.warn("grouped", `${where} — ${what}. Under \`cssMode: 'grouped'\` one class names the whole \`css()\` call, so this call cannot use one: it falls back to naming each declaration separately and keeps only the ones the build could resolve. ${fix} See https://bamboocss.com/docs/references/config#cssmode`);
|
|
1643
1653
|
}
|
|
1644
1654
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "The core css bamboo library",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
"picomatch": "4.0.4",
|
|
50
50
|
"pkg-types": "2.3.0",
|
|
51
51
|
"pluralize": "8.0.0",
|
|
52
|
-
"postcss": "8.5.
|
|
52
|
+
"postcss": "8.5.25",
|
|
53
53
|
"ts-morph": "28.0.0",
|
|
54
54
|
"ts-pattern": "5.9.0",
|
|
55
|
-
"@bamboocss/config": "1.
|
|
56
|
-
"@bamboocss/core": "1.
|
|
57
|
-
"@bamboocss/generator": "1.
|
|
58
|
-
"@bamboocss/logger": "1.
|
|
59
|
-
"@bamboocss/parser": "1.
|
|
60
|
-
"@bamboocss/plugin-lightningcss": "1.
|
|
61
|
-
"@bamboocss/plugin-svelte": "1.
|
|
62
|
-
"@bamboocss/plugin-vue": "1.
|
|
63
|
-
"@bamboocss/reporter": "1.
|
|
64
|
-
"@bamboocss/shared": "1.
|
|
65
|
-
"@bamboocss/token-dictionary": "1.
|
|
66
|
-
"@bamboocss/types": "1.
|
|
55
|
+
"@bamboocss/config": "1.17.0",
|
|
56
|
+
"@bamboocss/core": "1.17.0",
|
|
57
|
+
"@bamboocss/generator": "1.17.0",
|
|
58
|
+
"@bamboocss/logger": "1.17.0",
|
|
59
|
+
"@bamboocss/parser": "1.17.0",
|
|
60
|
+
"@bamboocss/plugin-lightningcss": "1.17.0",
|
|
61
|
+
"@bamboocss/plugin-svelte": "1.17.0",
|
|
62
|
+
"@bamboocss/plugin-vue": "1.17.0",
|
|
63
|
+
"@bamboocss/reporter": "1.17.0",
|
|
64
|
+
"@bamboocss/shared": "1.17.0",
|
|
65
|
+
"@bamboocss/token-dictionary": "1.17.0",
|
|
66
|
+
"@bamboocss/types": "1.17.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/fs-extra": "11.0.4",
|