@unocss/vite 0.50.5 → 0.50.6

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 CHANGED
@@ -31,15 +31,15 @@ const VIRTUAL_ENTRY_ALIAS = [
31
31
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
32
32
  ];
33
33
  const LAYER_MARK_ALL = "__ALL__";
34
- const RESOLVED_ID_WITH_QUERY_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
35
- const RESOLVED_ID_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css$/;
34
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
35
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
36
36
  function resolveId(id) {
37
37
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
38
38
  return id;
39
39
  for (const alias of VIRTUAL_ENTRY_ALIAS) {
40
40
  const match = id.match(alias);
41
41
  if (match) {
42
- return match[1] ? `\0/__uno_${match[1]}.css` : "\0/__uno.css";
42
+ return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
43
43
  }
44
44
  }
45
45
  }
package/dist/index.mjs CHANGED
@@ -18,15 +18,15 @@ const VIRTUAL_ENTRY_ALIAS = [
18
18
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
19
19
  ];
20
20
  const LAYER_MARK_ALL = "__ALL__";
21
- const RESOLVED_ID_WITH_QUERY_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
22
- const RESOLVED_ID_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css$/;
21
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
22
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
23
23
  function resolveId(id) {
24
24
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
25
25
  return id;
26
26
  for (const alias of VIRTUAL_ENTRY_ALIAS) {
27
27
  const match = id.match(alias);
28
28
  if (match) {
29
- return match[1] ? `\0/__uno_${match[1]}.css` : "\0/__uno.css";
29
+ return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
30
30
  }
31
31
  }
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.50.5",
3
+ "version": "0.50.6",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -47,15 +47,15 @@
47
47
  "chokidar": "^3.5.3",
48
48
  "fast-glob": "^3.2.12",
49
49
  "magic-string": "^0.30.0",
50
- "@unocss/config": "0.50.5",
51
- "@unocss/core": "0.50.5",
52
- "@unocss/inspector": "0.50.5",
53
- "@unocss/scope": "0.50.5",
54
- "@unocss/transformer-directives": "0.50.5"
50
+ "@unocss/config": "0.50.6",
51
+ "@unocss/core": "0.50.6",
52
+ "@unocss/inspector": "0.50.6",
53
+ "@unocss/scope": "0.50.6",
54
+ "@unocss/transformer-directives": "0.50.6"
55
55
  },
56
56
  "devDependencies": {
57
57
  "vite": "^4.2.0",
58
- "@unocss/shared-integration": "0.50.5"
58
+ "@unocss/shared-integration": "0.50.6"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "unbuild",