@unocss/vite 0.45.21 → 0.45.22
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 +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -322,7 +322,8 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
|
|
|
322
322
|
const fakeCssId = `${chunk.fileName}-unocss-hash.css`;
|
|
323
323
|
css = await applyCssTransform(css, fakeCssId, options.dir);
|
|
324
324
|
const hash = getHash(css);
|
|
325
|
-
|
|
325
|
+
const transformHandler = "handler" in cssPost.transform ? cssPost.transform.handler : cssPost.transform;
|
|
326
|
+
await transformHandler.call({}, getHashPlaceholder(hash), fakeCssId);
|
|
326
327
|
chunk.modules[fakeCssId] = {
|
|
327
328
|
code: null,
|
|
328
329
|
originalLength: 0,
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface VitePluginConfig<Theme extends {} = {}> extends UserConfig<Theme> {
|
|
|
31
31
|
transformCSS?: boolean | 'pre' | 'post';
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* make the
|
|
34
|
+
* make the generated css processed by postcss (https://vitejs.dev/guide/features.html#postcss)
|
|
35
35
|
* @default true
|
|
36
36
|
*/
|
|
37
37
|
postcss?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -311,7 +311,8 @@ function GlobalModeBuildPlugin({ uno, ready, extract, tokens, filter, getConfig
|
|
|
311
311
|
const fakeCssId = `${chunk.fileName}-unocss-hash.css`;
|
|
312
312
|
css = await applyCssTransform(css, fakeCssId, options.dir);
|
|
313
313
|
const hash = getHash(css);
|
|
314
|
-
|
|
314
|
+
const transformHandler = "handler" in cssPost.transform ? cssPost.transform.handler : cssPost.transform;
|
|
315
|
+
await transformHandler.call({}, getHashPlaceholder(hash), fakeCssId);
|
|
315
316
|
chunk.modules[fakeCssId] = {
|
|
316
317
|
code: null,
|
|
317
318
|
originalLength: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/vite",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.22",
|
|
4
4
|
"description": "The Vite plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ampproject/remapping": "^2.2.0",
|
|
46
46
|
"@rollup/pluginutils": "^4.2.1",
|
|
47
|
-
"@unocss/config": "0.45.
|
|
48
|
-
"@unocss/core": "0.45.
|
|
49
|
-
"@unocss/inspector": "0.45.
|
|
50
|
-
"@unocss/scope": "0.45.
|
|
51
|
-
"@unocss/transformer-directives": "0.45.
|
|
47
|
+
"@unocss/config": "0.45.22",
|
|
48
|
+
"@unocss/core": "0.45.22",
|
|
49
|
+
"@unocss/inspector": "0.45.22",
|
|
50
|
+
"@unocss/scope": "0.45.22",
|
|
51
|
+
"@unocss/transformer-directives": "0.45.22",
|
|
52
52
|
"magic-string": "^0.26.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@unocss/shared-integration": "0.45.
|
|
56
|
-
"vite": "^3.1.
|
|
55
|
+
"@unocss/shared-integration": "0.45.22",
|
|
56
|
+
"vite": "^3.1.2"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "unbuild",
|