@unocss/vite 0.45.28 → 0.45.30
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.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -21,13 +21,14 @@ const remapping__default = /*#__PURE__*/_interopDefaultLegacy(remapping);
|
|
|
21
21
|
const fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
22
22
|
|
|
23
23
|
const defaultExclude = [core.cssIdRE];
|
|
24
|
-
const defaultInclude = [/\.vue
|
|
24
|
+
const defaultInclude = [/\.(vue|svelte|[jt]sx|mdx?|astro|elm|html)($|\?)/];
|
|
25
25
|
|
|
26
26
|
const VIRTUAL_ENTRY_ALIAS = [
|
|
27
27
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
28
28
|
];
|
|
29
29
|
const LAYER_MARK_ALL = "__ALL__";
|
|
30
|
-
const RESOLVED_ID_WITH_QUERY_RE =
|
|
30
|
+
const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
31
|
+
const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
|
|
31
32
|
function resolveId(id) {
|
|
32
33
|
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
33
34
|
return id;
|
|
@@ -38,7 +39,6 @@ function resolveId(id) {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
const RESOLVED_ID_RE = /\/__uno(?:(_.*?))?\.css$/;
|
|
42
42
|
function resolveLayer(id) {
|
|
43
43
|
const match = id.match(RESOLVED_ID_RE);
|
|
44
44
|
if (match)
|
package/dist/index.mjs
CHANGED
|
@@ -10,13 +10,14 @@ import fs from 'fs';
|
|
|
10
10
|
import { fileURLToPath } from 'url';
|
|
11
11
|
|
|
12
12
|
const defaultExclude = [cssIdRE];
|
|
13
|
-
const defaultInclude = [/\.vue
|
|
13
|
+
const defaultInclude = [/\.(vue|svelte|[jt]sx|mdx?|astro|elm|html)($|\?)/];
|
|
14
14
|
|
|
15
15
|
const VIRTUAL_ENTRY_ALIAS = [
|
|
16
16
|
/^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
|
|
17
17
|
];
|
|
18
18
|
const LAYER_MARK_ALL = "__ALL__";
|
|
19
|
-
const RESOLVED_ID_WITH_QUERY_RE =
|
|
19
|
+
const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
|
|
20
|
+
const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
|
|
20
21
|
function resolveId(id) {
|
|
21
22
|
if (id.match(RESOLVED_ID_WITH_QUERY_RE))
|
|
22
23
|
return id;
|
|
@@ -27,7 +28,6 @@ function resolveId(id) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
const RESOLVED_ID_RE = /\/__uno(?:(_.*?))?\.css$/;
|
|
31
31
|
function resolveLayer(id) {
|
|
32
32
|
const match = id.match(RESOLVED_ID_RE);
|
|
33
33
|
if (match)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.30",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ampproject/remapping": "^2.2.0",
|
|
46
|
-
"@rollup/pluginutils": "^
|
|
47
|
-
"@unocss/config": "0.45.
|
|
48
|
-
"@unocss/core": "0.45.
|
|
49
|
-
"@unocss/inspector": "0.45.
|
|
50
|
-
"@unocss/scope": "0.45.
|
|
51
|
-
"@unocss/transformer-directives": "0.45.
|
|
52
|
-
"magic-string": "^0.26.
|
|
46
|
+
"@rollup/pluginutils": "^5.0.1",
|
|
47
|
+
"@unocss/config": "0.45.30",
|
|
48
|
+
"@unocss/core": "0.45.30",
|
|
49
|
+
"@unocss/inspector": "0.45.30",
|
|
50
|
+
"@unocss/scope": "0.45.30",
|
|
51
|
+
"@unocss/transformer-directives": "0.45.30",
|
|
52
|
+
"magic-string": "^0.26.7"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@unocss/shared-integration": "0.45.
|
|
56
|
-
"vite": "^3.1.
|
|
55
|
+
"@unocss/shared-integration": "0.45.30",
|
|
56
|
+
"vite": "^3.1.8"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|