@unocss/extractor-pug 0.62.3 → 0.63.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 +2 -2
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ function extractorPug(options = {}) {
18
18
  ctx.code = await compile(ctx.code, ctx.id) || ctx.code;
19
19
  } catch {
20
20
  }
21
- } else if (ctx.id.endsWith(".vue")) {
21
+ } else if (ctx.id.endsWith(".vue") || ctx.id.endsWith(".svelte")) {
22
22
  const matches = Array.from(ctx.code.matchAll(regexVueTemplate));
23
23
  let tail = "";
24
24
  for (const match of matches) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/extractor-pug",
3
3
  "type": "module",
4
- "version": "0.62.3",
4
+ "version": "0.63.0",
5
5
  "description": "UnoCSS extractor for Pug",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@types/pug": "^2.0.10",
46
46
  "pug": "^3.0.3",
47
- "@unocss/core": "0.62.3"
47
+ "@unocss/core": "0.63.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "unbuild",