@bamboocss/vite 1.46.2 → 1.46.3

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.
@@ -103,10 +103,11 @@ const pruneStaticCss = (css, session, { environment, prune = true, requiredClass
103
103
  return ` ${className}\n (${extracted}; no rule in the sheet` + (near.length ? `; a rule exists under ${near.map((n) => JSON.stringify(n)).join(", ")}` : "") + `)`;
104
104
  };
105
105
  const environmentDescription = environment ? ` for the ${JSON.stringify(environment)} environment` : "";
106
+ const guidance = orphaned.every((className) => prunable.has(require_class_name.bare(className))) ? "Extraction saw every one of these calls, but rule generation produced no declarations for them — the shape of a value nothing resolves, such as a `mixin` naming a composition the theme does not define. Check the class name's property and value against the theme, and look for a `🎋 warn [utility]` line above naming the same value. Set `unresolvedToken: 'error'` to fail fast at the exact call next time." : "The current source generation no longer provides every rule required by the JavaScript outputs still on disk. Bamboo refused to replace the prior stylesheet. Finish rebuilding every output which retains an older generation, then rebuild the stylesheet. If every output is already current, report this as a compiler bug with the block above.";
106
107
  throw new Error(`bamboocss: ${orphaned.length} compiled class(es) still named by live output have no rule in the candidate stylesheet${environmentDescription}. Elements carrying them would render unstyled.\n\n${(0, _bamboocss_shared.truncateList)(orphaned.map(describe), {
107
108
  unit: "class",
108
109
  separator: "\n"
109
- })}\n\nThe current source generation no longer provides every rule required by the JavaScript outputs still on disk. Bamboo refused to replace the prior stylesheet. Finish rebuilding every output which retains an older generation, then rebuild the stylesheet. If every output is already current, report this as a compiler bug with the block above.`);
110
+ })}\n\n` + guidance);
110
111
  }
111
112
  return root.toString();
112
113
  };
@@ -98,10 +98,11 @@ const pruneStaticCss = (css, session, { environment, prune = true, requiredClass
98
98
  return ` ${className}\n (${extracted}; no rule in the sheet` + (near.length ? `; a rule exists under ${near.map((n) => JSON.stringify(n)).join(", ")}` : "") + `)`;
99
99
  };
100
100
  const environmentDescription = environment ? ` for the ${JSON.stringify(environment)} environment` : "";
101
+ const guidance = orphaned.every((className) => prunable.has(bare(className))) ? "Extraction saw every one of these calls, but rule generation produced no declarations for them — the shape of a value nothing resolves, such as a `mixin` naming a composition the theme does not define. Check the class name's property and value against the theme, and look for a `🎋 warn [utility]` line above naming the same value. Set `unresolvedToken: 'error'` to fail fast at the exact call next time." : "The current source generation no longer provides every rule required by the JavaScript outputs still on disk. Bamboo refused to replace the prior stylesheet. Finish rebuilding every output which retains an older generation, then rebuild the stylesheet. If every output is already current, report this as a compiler bug with the block above.";
101
102
  throw new Error(`bamboocss: ${orphaned.length} compiled class(es) still named by live output have no rule in the candidate stylesheet${environmentDescription}. Elements carrying them would render unstyled.\n\n${truncateList(orphaned.map(describe), {
102
103
  unit: "class",
103
104
  separator: "\n"
104
- })}\n\nThe current source generation no longer provides every rule required by the JavaScript outputs still on disk. Bamboo refused to replace the prior stylesheet. Finish rebuilding every output which retains an older generation, then rebuild the stylesheet. If every output is already current, report this as a compiler bug with the block above.`);
105
+ })}\n\n` + guidance);
105
106
  }
106
107
  return root.toString();
107
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/vite",
3
- "version": "1.46.2",
3
+ "version": "1.46.3",
4
4
  "description": "Vite integration for Bamboo CSS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -42,18 +42,18 @@
42
42
  "postcss": "8.5.26",
43
43
  "postcss-selector-parser": "7.1.5",
44
44
  "ts-morph": "28.0.0",
45
- "@bamboocss/config": "1.46.2",
46
- "@bamboocss/core": "1.46.2",
47
- "@bamboocss/extractor": "1.46.2",
48
- "@bamboocss/node": "1.46.2",
49
- "@bamboocss/logger": "1.46.2",
50
- "@bamboocss/shared": "1.46.2",
51
- "@bamboocss/types": "1.46.2"
45
+ "@bamboocss/config": "1.46.3",
46
+ "@bamboocss/core": "1.46.3",
47
+ "@bamboocss/extractor": "1.46.3",
48
+ "@bamboocss/logger": "1.46.3",
49
+ "@bamboocss/node": "1.46.3",
50
+ "@bamboocss/shared": "1.46.3",
51
+ "@bamboocss/types": "1.46.3"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@jridgewell/trace-mapping": "^0.3.31",
55
55
  "vite": "7.2.6",
56
- "@bamboocss/fixture": "1.46.2"
56
+ "@bamboocss/fixture": "1.46.3"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "vite": ">=5"