chaincss 2.1.23 → 2.1.24
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/plugins/vite.js +1 -1
- package/package.json +1 -1
- package/src/plugins/vite.ts +1 -1
package/dist/plugins/vite.js
CHANGED
|
@@ -3237,7 +3237,7 @@ function chaincssPlugin(options = {}) {
|
|
|
3237
3237
|
return false;
|
|
3238
3238
|
}
|
|
3239
3239
|
const isUserFile = id.includes("/src/") || id.includes("/components/");
|
|
3240
|
-
const isComponent = /\.(t|j)sx?$/.test(id);
|
|
3240
|
+
const isComponent = /\.(t|j)sx?$/.test(id) || id.endsWith(".chain.ts") || id.endsWith(".chain.js");
|
|
3241
3241
|
return isUserFile && isComponent;
|
|
3242
3242
|
}
|
|
3243
3243
|
function updateCSS() {
|
package/package.json
CHANGED
package/src/plugins/vite.ts
CHANGED
|
@@ -76,7 +76,7 @@ export default function chaincssPlugin(options: ChainCSSPluginOptions = {}): Plu
|
|
|
76
76
|
|
|
77
77
|
// Default: process source files
|
|
78
78
|
const isUserFile = id.includes('/src/') || id.includes('/components/');
|
|
79
|
-
const isComponent = /\.(t|j)sx?$/.test(id);
|
|
79
|
+
const isComponent = /\.(t|j)sx?$/.test(id) || id.endsWith(".chain.ts") || id.endsWith(".chain.js");
|
|
80
80
|
|
|
81
81
|
return isUserFile && isComponent;
|
|
82
82
|
}
|