@unocss/webpack 0.50.5 → 0.50.7

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/README.md CHANGED
@@ -42,7 +42,7 @@ Add `uno.css` to your main entry:
42
42
  import 'uno.css'
43
43
  ```
44
44
 
45
- Or you can have the config file in `unocss.config.js` or `unocss.config.ts`.
45
+ Or you can have the config file in `uno.config.ts` or `uno.config.ts`.
46
46
 
47
47
  ## License
48
48
 
package/dist/index.cjs CHANGED
@@ -212,15 +212,15 @@ const VIRTUAL_ENTRY_ALIAS = [
212
212
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
213
213
  ];
214
214
  const LAYER_MARK_ALL = "__ALL__";
215
- const RESOLVED_ID_WITH_QUERY_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
216
- const RESOLVED_ID_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css$/;
215
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
216
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
217
217
  function resolveId(id) {
218
218
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
219
219
  return id;
220
220
  for (const alias of VIRTUAL_ENTRY_ALIAS) {
221
221
  const match = id.match(alias);
222
222
  if (match) {
223
- return match[1] ? `\0/__uno_${match[1]}.css` : "\0/__uno.css";
223
+ return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
224
224
  }
225
225
  }
226
226
  }
package/dist/index.mjs CHANGED
@@ -200,15 +200,15 @@ const VIRTUAL_ENTRY_ALIAS = [
200
200
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
201
201
  ];
202
202
  const LAYER_MARK_ALL = "__ALL__";
203
- const RESOLVED_ID_WITH_QUERY_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
204
- const RESOLVED_ID_RE = /\0?[\/\\]__uno(?:(_.*?))?\.css$/;
203
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
204
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
205
205
  function resolveId(id) {
206
206
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
207
207
  return id;
208
208
  for (const alias of VIRTUAL_ENTRY_ALIAS) {
209
209
  const match = id.match(alias);
210
210
  if (match) {
211
- return match[1] ? `\0/__uno_${match[1]}.css` : "\0/__uno.css";
211
+ return match[1] ? `/__uno_${match[1]}.css` : "/__uno.css";
212
212
  }
213
213
  }
214
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.50.5",
3
+ "version": "0.50.7",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -43,13 +43,13 @@
43
43
  "magic-string": "^0.30.0",
44
44
  "unplugin": "^1.3.1",
45
45
  "webpack-sources": "^3.2.3",
46
- "@unocss/config": "0.50.5",
47
- "@unocss/core": "0.50.5"
46
+ "@unocss/config": "0.50.7",
47
+ "@unocss/core": "0.50.7"
48
48
  },
49
49
  "devDependencies": {
50
- "@types/webpack": "^5.28.0",
50
+ "@types/webpack": "^5.28.1",
51
51
  "@types/webpack-sources": "^3.2.0",
52
- "webpack": "^5.76.2"
52
+ "webpack": "^5.77.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "unbuild",