@unocss/webpack 0.58.7 → 0.58.9

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
@@ -204,7 +204,10 @@ async function applyTransformers(ctx, original, id, enforce = "default") {
204
204
  ctx.affectedModules.add(id);
205
205
  return {
206
206
  code,
207
- map: remapping__default(maps, () => null)
207
+ map: remapping__default(maps, (_, ctx2) => {
208
+ ctx2.content = code;
209
+ return null;
210
+ })
208
211
  };
209
212
  }
210
213
  }
package/dist/index.mjs CHANGED
@@ -191,7 +191,10 @@ async function applyTransformers(ctx, original, id, enforce = "default") {
191
191
  ctx.affectedModules.add(id);
192
192
  return {
193
193
  code,
194
- map: remapping(maps, () => null)
194
+ map: remapping(maps, (_, ctx2) => {
195
+ ctx2.content = code;
196
+ return null;
197
+ })
195
198
  };
196
199
  }
197
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/webpack",
3
- "version": "0.58.7",
3
+ "version": "0.58.9",
4
4
  "description": "The Webpack plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -41,10 +41,10 @@
41
41
  "chokidar": "^3.6.0",
42
42
  "fast-glob": "^3.3.2",
43
43
  "magic-string": "^0.30.8",
44
- "unplugin": "^1.10.0",
44
+ "unplugin": "^1.10.1",
45
45
  "webpack-sources": "^3.2.3",
46
- "@unocss/config": "0.58.7",
47
- "@unocss/core": "0.58.7"
46
+ "@unocss/config": "0.58.9",
47
+ "@unocss/core": "0.58.9"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/webpack": "^5.28.5",