@plumeria/utils 19.14.1 → 19.14.3

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.
Files changed (2) hide show
  1. package/dist/compile.js +10 -0
  2. 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "19.14.1",
3
+ "version": "19.14.3",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",