@unocss/vite 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
@@ -307,7 +307,10 @@ async function applyTransformers(ctx, original, id, enforce = "default") {
307
307
  ctx.affectedModules.add(id);
308
308
  return {
309
309
  code,
310
- map: remapping__default(maps, () => null)
310
+ map: remapping__default(maps, (_, ctx2) => {
311
+ ctx2.content = code;
312
+ return null;
313
+ })
311
314
  };
312
315
  }
313
316
  }
@@ -916,7 +919,7 @@ function VueScopedPlugin({ uno, ready }) {
916
919
  );
917
920
  },
918
921
  transform(code, id) {
919
- if (!filter(id))
922
+ if (!filter(id) || !id.endsWith(".vue"))
920
923
  return;
921
924
  return transformSFC(code);
922
925
  },
package/dist/index.mjs CHANGED
@@ -292,7 +292,10 @@ async function applyTransformers(ctx, original, id, enforce = "default") {
292
292
  ctx.affectedModules.add(id);
293
293
  return {
294
294
  code,
295
- map: remapping(maps, () => null)
295
+ map: remapping(maps, (_, ctx2) => {
296
+ ctx2.content = code;
297
+ return null;
298
+ })
296
299
  };
297
300
  }
298
301
  }
@@ -901,7 +904,7 @@ function VueScopedPlugin({ uno, ready }) {
901
904
  );
902
905
  },
903
906
  transform(code, id) {
904
- if (!filter(id))
907
+ if (!filter(id) || !id.endsWith(".vue"))
905
908
  return;
906
909
  return transformSFC(code);
907
910
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.58.7",
3
+ "version": "0.58.9",
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.6.0",
48
48
  "fast-glob": "^3.3.2",
49
49
  "magic-string": "^0.30.8",
50
- "@unocss/config": "0.58.7",
51
- "@unocss/core": "0.58.7",
52
- "@unocss/scope": "0.58.7",
53
- "@unocss/inspector": "0.58.7",
54
- "@unocss/transformer-directives": "0.58.7"
50
+ "@unocss/config": "0.58.9",
51
+ "@unocss/core": "0.58.9",
52
+ "@unocss/inspector": "0.58.9",
53
+ "@unocss/scope": "0.58.9",
54
+ "@unocss/transformer-directives": "0.58.9"
55
55
  },
56
56
  "devDependencies": {
57
- "vite": "^5.2.6",
58
- "@unocss/shared-integration": "0.58.7"
57
+ "vite": "^5.2.7",
58
+ "@unocss/shared-integration": "0.58.9"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "unbuild",