astro-purgecss 1.1.2 → 1.2.0

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/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ function src_default(options = {}) {
14
14
  defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || []
15
15
  });
16
16
  await Promise.all(
17
- purged.filter(({ file }) => file.endsWith(".css")).map(async ({ css, file }) => await writeFile(file, css))
17
+ purged.filter(({ file }) => file == null ? void 0 : file.endsWith(".css")).map(async ({ css, file }) => await writeFile(file, css))
18
18
  );
19
19
  }
20
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "astro-purgecss",
3
3
  "description": "Remove unused CSS rules from your final Astro bundle",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "scripts": {
6
6
  "build": "astro-build --src src/**/*.ts",
7
7
  "postbuild": "npm run typecheck:emit",