@unocss/vite 0.46.4 → 0.46.5

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
@@ -359,7 +359,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
359
359
  const css = chunk.source.replace(HASH_PLACEHOLDER_RE, "");
360
360
  chunk.source = await replaceAsync(css, LAYER_PLACEHOLDER_RE, async (_, __, layer) => {
361
361
  replaced = true;
362
- return await applyCssTransform(layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(vfsLayers)) : result.getLayer(layer) || "", `${chunk.fileName}.css`, options.dir);
362
+ return layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(vfsLayers)) : result.getLayer(layer) || "";
363
363
  });
364
364
  } else if (chunk.type === "chunk" && typeof chunk.code === "string") {
365
365
  const js = chunk.code.replace(HASH_PLACEHOLDER_RE, "");
package/dist/index.mjs CHANGED
@@ -348,7 +348,7 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
348
348
  const css = chunk.source.replace(HASH_PLACEHOLDER_RE, "");
349
349
  chunk.source = await replaceAsync(css, LAYER_PLACEHOLDER_RE, async (_, __, layer) => {
350
350
  replaced = true;
351
- return await applyCssTransform(layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(vfsLayers)) : result.getLayer(layer) || "", `${chunk.fileName}.css`, options.dir);
351
+ return layer === LAYER_MARK_ALL ? result.getLayers(void 0, Array.from(vfsLayers)) : result.getLayer(layer) || "";
352
352
  });
353
353
  } else if (chunk.type === "chunk" && typeof chunk.code === "string") {
354
354
  const js = chunk.code.replace(HASH_PLACEHOLDER_RE, "");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/vite",
3
- "version": "0.46.4",
3
+ "version": "0.46.5",
4
4
  "description": "The Vite plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -44,15 +44,15 @@
44
44
  "dependencies": {
45
45
  "@ampproject/remapping": "^2.2.0",
46
46
  "@rollup/pluginutils": "^5.0.1",
47
- "@unocss/config": "0.46.4",
48
- "@unocss/core": "0.46.4",
49
- "@unocss/inspector": "0.46.4",
50
- "@unocss/scope": "0.46.4",
51
- "@unocss/transformer-directives": "0.46.4",
47
+ "@unocss/config": "0.46.5",
48
+ "@unocss/core": "0.46.5",
49
+ "@unocss/inspector": "0.46.5",
50
+ "@unocss/scope": "0.46.5",
51
+ "@unocss/transformer-directives": "0.46.5",
52
52
  "magic-string": "^0.26.7"
53
53
  },
54
54
  "devDependencies": {
55
- "@unocss/shared-integration": "0.46.4",
55
+ "@unocss/shared-integration": "0.46.5",
56
56
  "vite": "^3.1.8"
57
57
  },
58
58
  "scripts": {