@unocss/extractor-pug 0.62.3 → 0.62.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/index.mjs +1 -1
- 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.
|
|
4
|
+
"version": "0.62.4",
|
|
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.
|
|
47
|
+
"@unocss/core": "0.62.4"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "unbuild",
|