@flairjs/webpack-loader 0.0.1-beta.3 → 0.0.1-beta.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/cjs/index.js +7 -7
- package/dist/esm/index.js +7 -7
- package/dist/types/index.js +7 -7
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -180,15 +180,15 @@ const removeOutdatedCssFiles = async (sourceFilePath, cssFilePath, { flairGenera
|
|
|
180
180
|
else store.setFileNameToGeneratedCssNameMap(sourceFilePath, cssFilePath);
|
|
181
181
|
};
|
|
182
182
|
function shouldProcessFile(id, include, exclude) {
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const isExcluded = (0, picomatch.default)(normalizePatterns(exclude, ["node_modules/**"]));
|
|
188
|
-
if (!isIncluded(id)) return false;
|
|
189
|
-
if (isExcluded(id)) return false;
|
|
183
|
+
const isIncluded = (0, picomatch.default)(include ?? ["**/*.{js,ts,jsx,tsx}"]);
|
|
184
|
+
const isExcluded = (0, picomatch.default)(exclude ?? ["node_modules/**"]);
|
|
185
|
+
if (!isIncluded(normalizeFilePath(id))) return false;
|
|
186
|
+
if (isExcluded(normalizeFilePath(id))) return false;
|
|
190
187
|
return true;
|
|
191
188
|
}
|
|
189
|
+
function normalizeFilePath(filePath) {
|
|
190
|
+
return filePath.replace(/\\/g, "/");
|
|
191
|
+
}
|
|
192
192
|
const colors = {
|
|
193
193
|
reset: "\x1B[0m",
|
|
194
194
|
fg: {
|
package/dist/esm/index.js
CHANGED
|
@@ -146,15 +146,15 @@ const removeOutdatedCssFiles = async (sourceFilePath, cssFilePath, { flairGenera
|
|
|
146
146
|
else store.setFileNameToGeneratedCssNameMap(sourceFilePath, cssFilePath);
|
|
147
147
|
};
|
|
148
148
|
function shouldProcessFile(id, include, exclude) {
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
const isExcluded = picomatch(normalizePatterns(exclude, ["node_modules/**"]));
|
|
154
|
-
if (!isIncluded(id)) return false;
|
|
155
|
-
if (isExcluded(id)) return false;
|
|
149
|
+
const isIncluded = picomatch(include ?? ["**/*.{js,ts,jsx,tsx}"]);
|
|
150
|
+
const isExcluded = picomatch(exclude ?? ["node_modules/**"]);
|
|
151
|
+
if (!isIncluded(normalizeFilePath(id))) return false;
|
|
152
|
+
if (isExcluded(normalizeFilePath(id))) return false;
|
|
156
153
|
return true;
|
|
157
154
|
}
|
|
155
|
+
function normalizeFilePath(filePath) {
|
|
156
|
+
return filePath.replace(/\\/g, "/");
|
|
157
|
+
}
|
|
158
158
|
const colors = {
|
|
159
159
|
reset: "\x1B[0m",
|
|
160
160
|
fg: {
|
package/dist/types/index.js
CHANGED
|
@@ -4091,15 +4091,15 @@ const removeOutdatedCssFiles = async (sourceFilePath, cssFilePath, { flairGenera
|
|
|
4091
4091
|
else store.setFileNameToGeneratedCssNameMap(sourceFilePath, cssFilePath);
|
|
4092
4092
|
};
|
|
4093
4093
|
function shouldProcessFile(id, include, exclude) {
|
|
4094
|
-
const
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
const isExcluded = (0, import_picomatch.default)(normalizePatterns(exclude, ["node_modules/**"]));
|
|
4099
|
-
if (!isIncluded(id)) return false;
|
|
4100
|
-
if (isExcluded(id)) return false;
|
|
4094
|
+
const isIncluded = (0, import_picomatch.default)(include ?? ["**/*.{js,ts,jsx,tsx}"]);
|
|
4095
|
+
const isExcluded = (0, import_picomatch.default)(exclude ?? ["node_modules/**"]);
|
|
4096
|
+
if (!isIncluded(normalizeFilePath(id))) return false;
|
|
4097
|
+
if (isExcluded(normalizeFilePath(id))) return false;
|
|
4101
4098
|
return true;
|
|
4102
4099
|
}
|
|
4100
|
+
function normalizeFilePath(filePath) {
|
|
4101
|
+
return filePath.replace(/\\/g, "/");
|
|
4102
|
+
}
|
|
4103
4103
|
const colors = {
|
|
4104
4104
|
reset: "\x1B[0m",
|
|
4105
4105
|
fg: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flairjs/webpack-loader",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.4",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"webpack": ">=5.0.0",
|
|
16
|
-
"@flairjs/core": "0.0.1-beta.
|
|
16
|
+
"@flairjs/core": "0.0.1-beta.5"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@biomejs/biome": "^1.9.4",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"rolldown": "1.0.0-beta.37",
|
|
23
23
|
"typescript": "^5.8.2",
|
|
24
24
|
"webpack": "^5.101.0",
|
|
25
|
-
"@flairjs/bundler-shared": "0.0.1-beta.
|
|
26
|
-
"@flairjs/core": "0.0.1-beta.
|
|
25
|
+
"@flairjs/bundler-shared": "0.0.1-beta.7",
|
|
26
|
+
"@flairjs/core": "0.0.1-beta.5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"esbuild": "^0.25.10",
|