@bamboocss/vite 1.36.3 → 1.36.4
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 -2
- package/dist/index.mjs +10 -2
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -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
|
@@ -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.4",
|
|
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/core": "1.36.
|
|
45
|
-
"@bamboocss/extractor": "1.36.
|
|
46
|
-
"@bamboocss/logger": "1.36.
|
|
47
|
-
"@bamboocss/node": "1.36.
|
|
48
|
-
"@bamboocss/shared": "1.36.
|
|
49
|
-
"@bamboocss/types": "1.36.
|
|
43
|
+
"@bamboocss/config": "1.36.4",
|
|
44
|
+
"@bamboocss/core": "1.36.4",
|
|
45
|
+
"@bamboocss/extractor": "1.36.4",
|
|
46
|
+
"@bamboocss/logger": "1.36.4",
|
|
47
|
+
"@bamboocss/node": "1.36.4",
|
|
48
|
+
"@bamboocss/shared": "1.36.4",
|
|
49
|
+
"@bamboocss/types": "1.36.4"
|
|
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.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vite": ">=5"
|