@unocss/webpack 0.45.28 → 0.45.29

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
@@ -126,7 +126,8 @@ const VIRTUAL_ENTRY_ALIAS = [
126
126
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
127
127
  ];
128
128
  const LAYER_MARK_ALL = "__ALL__";
129
- const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/;
129
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
130
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
130
131
  function resolveId(id) {
131
132
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
132
133
  return id;
@@ -137,7 +138,6 @@ function resolveId(id) {
137
138
  }
138
139
  }
139
140
  }
140
- const RESOLVED_ID_RE = /\/__uno(?:(_.*?))?\.css$/;
141
141
  function resolveLayer(id) {
142
142
  const match = id.match(RESOLVED_ID_RE);
143
143
  if (match)
package/dist/index.mjs CHANGED
@@ -116,7 +116,8 @@ const VIRTUAL_ENTRY_ALIAS = [
116
116
  /^(?:virtual:)?uno(?::(.+))?\.css(\?.*)?$/
117
117
  ];
118
118
  const LAYER_MARK_ALL = "__ALL__";
119
- const RESOLVED_ID_WITH_QUERY_RE = /\/__uno(?:(_.*?))?\.css(\?.*)?$/;
119
+ const RESOLVED_ID_WITH_QUERY_RE = /[\/\\]__uno(?:(_.*?))?\.css(\?.*)?$/;
120
+ const RESOLVED_ID_RE = /[\/\\]__uno(?:(_.*?))?\.css$/;
120
121
  function resolveId(id) {
121
122
  if (id.match(RESOLVED_ID_WITH_QUERY_RE))
122
123
  return id;
@@ -127,7 +128,6 @@ function resolveId(id) {
127
128
  }
128
129
  }
129
130
  }
130
- const RESOLVED_ID_RE = /\/__uno(?:(_.*?))?\.css$/;
131
131
  function resolveLayer(id) {
132
132
  const match = id.match(RESOLVED_ID_RE);
133
133
  if (match)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.45.28",
3
+ "version": "0.45.29",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@ampproject/remapping": "^2.2.0",
40
40
  "@rollup/pluginutils": "^4.2.1",
41
- "@unocss/config": "0.45.28",
42
- "@unocss/core": "0.45.28",
41
+ "@unocss/config": "0.45.29",
42
+ "@unocss/core": "0.45.29",
43
43
  "magic-string": "^0.26.6",
44
44
  "unplugin": "^0.9.6",
45
45
  "webpack-sources": "^3.2.3"