@unocss/webpack 0.57.0 → 0.57.2

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
@@ -383,7 +383,7 @@ function WebpackPlugin(configOrPath, defaults) {
383
383
  replaced = true;
384
384
  const css = layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(entries).map((i) => resolveLayer(i)).filter((i) => !!i)) : result.getLayer(layer) || "";
385
385
  if (!quote)
386
- return css.replaceAll(/\\/g, "\\\\\\\\");
386
+ return css;
387
387
  let escaped = JSON.stringify(css).slice(1, -1);
388
388
  if (quote === '\\"')
389
389
  escaped = JSON.stringify(escaped).slice(1, -1);
package/dist/index.mjs CHANGED
@@ -370,7 +370,7 @@ function WebpackPlugin(configOrPath, defaults) {
370
370
  replaced = true;
371
371
  const css = layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(entries).map((i) => resolveLayer(i)).filter((i) => !!i)) : result.getLayer(layer) || "";
372
372
  if (!quote)
373
- return css.replaceAll(/\\/g, "\\\\\\\\");
373
+ return css;
374
374
  let escaped = JSON.stringify(css).slice(1, -1);
375
375
  if (quote === '\\"')
376
376
  escaped = JSON.stringify(escaped).slice(1, -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.57.0",
3
+ "version": "0.57.2",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  "magic-string": "^0.30.5",
44
44
  "unplugin": "^1.5.0",
45
45
  "webpack-sources": "^3.2.3",
46
- "@unocss/config": "0.57.0",
47
- "@unocss/core": "0.57.0"
46
+ "@unocss/config": "0.57.2",
47
+ "@unocss/core": "0.57.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/webpack": "^5.28.4",