@plumeria/utils 19.14.1 → 19.14.2
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/compile.js +10 -0
- package/package.json +1 -1
package/dist/compile.js
CHANGED
|
@@ -1245,8 +1245,15 @@ function compileCSS(options) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
return fresh;
|
|
1247
1247
|
};
|
|
1248
|
+
const globbed = options.files === undefined;
|
|
1248
1249
|
for (const file of files) {
|
|
1249
1250
|
const resource = path.resolve(cwd, file);
|
|
1251
|
+
if (globbed &&
|
|
1252
|
+
options.sources?.[resource] === undefined &&
|
|
1253
|
+
stampOf(resource) === undefined) {
|
|
1254
|
+
sheetCache.delete(resource);
|
|
1255
|
+
continue;
|
|
1256
|
+
}
|
|
1250
1257
|
const key = JSON.stringify([
|
|
1251
1258
|
scope,
|
|
1252
1259
|
stampOf(resource),
|
|
@@ -1269,6 +1276,9 @@ function compileCSS(options) {
|
|
|
1269
1276
|
}
|
|
1270
1277
|
catch (error) {
|
|
1271
1278
|
sheetCache.delete(resource);
|
|
1279
|
+
if (globbed && error.code === 'ENOENT') {
|
|
1280
|
+
continue;
|
|
1281
|
+
}
|
|
1272
1282
|
throw error;
|
|
1273
1283
|
}
|
|
1274
1284
|
sheetCache.set(resource, cached);
|