@bamboocss/vite 1.36.3 → 1.36.5
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 +11 -3
- package/dist/index.mjs +11 -3
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -2845,7 +2845,7 @@ const bamboocss = (options = {}) => {
|
|
|
2845
2845
|
separator: "\n"
|
|
2846
2846
|
});
|
|
2847
2847
|
const threw = entries.some((entry) => entry.reason === "compile-failed");
|
|
2848
|
-
return /* @__PURE__ */ new Error(`bamboocss: ${entries.length} call(s) could not be compiled.\n\n${detail}\n\n` + (threw ? "`compile-failed` is a module the compiler threw on — see the error logged for it above. Nothing was established about its calls either way.\n\n" : "") + (entries.some((entry) => entry.reason === "runtime-binding") ? "`runtime-binding` is a Bamboo value read
|
|
2848
|
+
return /* @__PURE__ */ new Error(`bamboocss: ${entries.length} call(s) could not be compiled.\n\n${detail}\n\n` + (threw ? "`compile-failed` is a module the compiler threw on — see the error logged for it above. Nothing was established about its calls either way.\n\n" : "") + (entries.some((entry) => entry.reason === "runtime-binding") ? "`runtime-binding` is a Bamboo value read rather than called. An inline `cva`/`sva` declaration is erased, so its binding is `undefined` at runtime: calling it compiles, including from another module, but reading the value itself — `const alias = badge`, `badge.raw(...)`, re-exporting it — has nothing behind it. The location given is the read to change, not the declaration.\n\n" : "") + "Bamboo emits no runtime styling fallback or recipe layer. Make the values finite and statically analyzable, move variation into declared recipe variants, or safelist intentional dynamic classes with `staticCss`.\n\nSet `BAMBOO_DIAGNOSTIC_LIMIT=all` to list every finding rather than the first few.");
|
|
2849
2849
|
};
|
|
2850
2850
|
/**
|
|
2851
2851
|
* Recipe configs read out of modules other than the one being transformed.
|
|
@@ -2891,7 +2891,11 @@ const bamboocss = (options = {}) => {
|
|
|
2891
2891
|
survivorKeys.clear();
|
|
2892
2892
|
recipeConfigCache.clear();
|
|
2893
2893
|
resetStaticCompilationSession(staticSession);
|
|
2894
|
-
|
|
2894
|
+
try {
|
|
2895
|
+
await ensureContext();
|
|
2896
|
+
} catch (error) {
|
|
2897
|
+
throw asError(error, "failed to load the bamboo config");
|
|
2898
|
+
}
|
|
2895
2899
|
},
|
|
2896
2900
|
/**
|
|
2897
2901
|
* Take a changed module out of the parser's hands before the rebuild reads it.
|
|
@@ -2927,7 +2931,11 @@ const bamboocss = (options = {}) => {
|
|
|
2927
2931
|
},
|
|
2928
2932
|
async transform(code, id) {
|
|
2929
2933
|
if (!shouldTransform(id)) return null;
|
|
2930
|
-
|
|
2934
|
+
try {
|
|
2935
|
+
await ensureContext();
|
|
2936
|
+
} catch (error) {
|
|
2937
|
+
throw asError(error, "failed to load the bamboo config");
|
|
2938
|
+
}
|
|
2931
2939
|
if (!ctx || !runtimeCss || !styleCompiler) return null;
|
|
2932
2940
|
const [filePath] = id.split("?");
|
|
2933
2941
|
clearSurvivorsFor(filePath);
|
package/dist/index.mjs
CHANGED
|
@@ -2815,7 +2815,7 @@ const bamboocss = (options = {}) => {
|
|
|
2815
2815
|
separator: "\n"
|
|
2816
2816
|
});
|
|
2817
2817
|
const threw = entries.some((entry) => entry.reason === "compile-failed");
|
|
2818
|
-
return /* @__PURE__ */ new Error(`bamboocss: ${entries.length} call(s) could not be compiled.\n\n${detail}\n\n` + (threw ? "`compile-failed` is a module the compiler threw on — see the error logged for it above. Nothing was established about its calls either way.\n\n" : "") + (entries.some((entry) => entry.reason === "runtime-binding") ? "`runtime-binding` is a Bamboo value read
|
|
2818
|
+
return /* @__PURE__ */ new Error(`bamboocss: ${entries.length} call(s) could not be compiled.\n\n${detail}\n\n` + (threw ? "`compile-failed` is a module the compiler threw on — see the error logged for it above. Nothing was established about its calls either way.\n\n" : "") + (entries.some((entry) => entry.reason === "runtime-binding") ? "`runtime-binding` is a Bamboo value read rather than called. An inline `cva`/`sva` declaration is erased, so its binding is `undefined` at runtime: calling it compiles, including from another module, but reading the value itself — `const alias = badge`, `badge.raw(...)`, re-exporting it — has nothing behind it. The location given is the read to change, not the declaration.\n\n" : "") + "Bamboo emits no runtime styling fallback or recipe layer. Make the values finite and statically analyzable, move variation into declared recipe variants, or safelist intentional dynamic classes with `staticCss`.\n\nSet `BAMBOO_DIAGNOSTIC_LIMIT=all` to list every finding rather than the first few.");
|
|
2819
2819
|
};
|
|
2820
2820
|
/**
|
|
2821
2821
|
* Recipe configs read out of modules other than the one being transformed.
|
|
@@ -2861,7 +2861,11 @@ const bamboocss = (options = {}) => {
|
|
|
2861
2861
|
survivorKeys.clear();
|
|
2862
2862
|
recipeConfigCache.clear();
|
|
2863
2863
|
resetStaticCompilationSession(staticSession);
|
|
2864
|
-
|
|
2864
|
+
try {
|
|
2865
|
+
await ensureContext();
|
|
2866
|
+
} catch (error) {
|
|
2867
|
+
throw asError(error, "failed to load the bamboo config");
|
|
2868
|
+
}
|
|
2865
2869
|
},
|
|
2866
2870
|
/**
|
|
2867
2871
|
* Take a changed module out of the parser's hands before the rebuild reads it.
|
|
@@ -2897,7 +2901,11 @@ const bamboocss = (options = {}) => {
|
|
|
2897
2901
|
},
|
|
2898
2902
|
async transform(code, id) {
|
|
2899
2903
|
if (!shouldTransform(id)) return null;
|
|
2900
|
-
|
|
2904
|
+
try {
|
|
2905
|
+
await ensureContext();
|
|
2906
|
+
} catch (error) {
|
|
2907
|
+
throw asError(error, "failed to load the bamboo config");
|
|
2908
|
+
}
|
|
2901
2909
|
if (!ctx || !runtimeCss || !styleCompiler) return null;
|
|
2902
2910
|
const [filePath] = id.split("?");
|
|
2903
2911
|
clearSurvivorsFor(filePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/vite",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.5",
|
|
4
4
|
"description": "Vite integration for Bamboo CSS",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"postcss": "8.5.26",
|
|
41
41
|
"postcss-selector-parser": "7.1.5",
|
|
42
42
|
"ts-morph": "28.0.0",
|
|
43
|
-
"@bamboocss/config": "1.36.
|
|
44
|
-
"@bamboocss/
|
|
45
|
-
"@bamboocss/
|
|
46
|
-
"@bamboocss/
|
|
47
|
-
"@bamboocss/
|
|
48
|
-
"@bamboocss/shared": "1.36.
|
|
49
|
-
"@bamboocss/types": "1.36.
|
|
43
|
+
"@bamboocss/config": "1.36.5",
|
|
44
|
+
"@bamboocss/extractor": "1.36.5",
|
|
45
|
+
"@bamboocss/core": "1.36.5",
|
|
46
|
+
"@bamboocss/node": "1.36.5",
|
|
47
|
+
"@bamboocss/logger": "1.36.5",
|
|
48
|
+
"@bamboocss/shared": "1.36.5",
|
|
49
|
+
"@bamboocss/types": "1.36.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
53
53
|
"vite": "7.2.6",
|
|
54
|
-
"@bamboocss/fixture": "1.36.
|
|
54
|
+
"@bamboocss/fixture": "1.36.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vite": ">=5"
|