@unocss/postcss 0.55.1 → 0.55.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 +5 -5
- package/dist/index.d.cts +29 -0
- package/dist/index.d.mts +29 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -10,12 +10,12 @@ const config = require('@unocss/config');
|
|
|
10
10
|
const cssTree = require('css-tree');
|
|
11
11
|
const MagicString = require('magic-string');
|
|
12
12
|
|
|
13
|
-
function
|
|
13
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
14
14
|
|
|
15
|
-
const process__default = /*#__PURE__*/
|
|
16
|
-
const fg__default = /*#__PURE__*/
|
|
17
|
-
const postcss__default = /*#__PURE__*/
|
|
18
|
-
const MagicString__default = /*#__PURE__*/
|
|
15
|
+
const process__default = /*#__PURE__*/_interopDefaultCompat(process);
|
|
16
|
+
const fg__default = /*#__PURE__*/_interopDefaultCompat(fg);
|
|
17
|
+
const postcss__default = /*#__PURE__*/_interopDefaultCompat(postcss);
|
|
18
|
+
const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
|
|
19
19
|
|
|
20
20
|
const defaultFilesystemGlobs = [
|
|
21
21
|
"**/*.{html,js,ts,jsx,tsx,vue,svelte,astro,elm,php,phtml,mdx,md}"
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Root, Result } from 'postcss';
|
|
2
|
+
import { UserConfig } from '@unocss/core';
|
|
3
|
+
|
|
4
|
+
interface UnoPostcssPluginOptions {
|
|
5
|
+
content?: (string | {
|
|
6
|
+
raw: string;
|
|
7
|
+
extension: string;
|
|
8
|
+
})[];
|
|
9
|
+
directiveMap?: {
|
|
10
|
+
apply?: string;
|
|
11
|
+
screen?: string;
|
|
12
|
+
theme?: string;
|
|
13
|
+
unocss?: string;
|
|
14
|
+
};
|
|
15
|
+
cwd?: string;
|
|
16
|
+
configOrPath?: string | UserConfig;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function unocss(options?: UnoPostcssPluginOptions): {
|
|
20
|
+
postcssPlugin: string;
|
|
21
|
+
plugins: ((root: Root, result: Result) => Promise<void>)[];
|
|
22
|
+
};
|
|
23
|
+
declare namespace unocss {
|
|
24
|
+
export var postcss: boolean;
|
|
25
|
+
var _a: typeof unocss;
|
|
26
|
+
export { _a as default };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { UnoPostcssPluginOptions, unocss as default };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Root, Result } from 'postcss';
|
|
2
|
+
import { UserConfig } from '@unocss/core';
|
|
3
|
+
|
|
4
|
+
interface UnoPostcssPluginOptions {
|
|
5
|
+
content?: (string | {
|
|
6
|
+
raw: string;
|
|
7
|
+
extension: string;
|
|
8
|
+
})[];
|
|
9
|
+
directiveMap?: {
|
|
10
|
+
apply?: string;
|
|
11
|
+
screen?: string;
|
|
12
|
+
theme?: string;
|
|
13
|
+
unocss?: string;
|
|
14
|
+
};
|
|
15
|
+
cwd?: string;
|
|
16
|
+
configOrPath?: string | UserConfig;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare function unocss(options?: UnoPostcssPluginOptions): {
|
|
20
|
+
postcssPlugin: string;
|
|
21
|
+
plugins: ((root: Root, result: Result) => Promise<void>)[];
|
|
22
|
+
};
|
|
23
|
+
declare namespace unocss {
|
|
24
|
+
export var postcss: boolean;
|
|
25
|
+
var _a: typeof unocss;
|
|
26
|
+
export { _a as default };
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { UnoPostcssPluginOptions, unocss as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/postcss",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.2",
|
|
4
4
|
"description": "PostCSS plugin for UnoCSS",
|
|
5
5
|
"author": "sibbng <sibbngheid@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"fast-glob": "^3.3.1",
|
|
41
41
|
"magic-string": "^0.30.2",
|
|
42
42
|
"postcss": "^8.4.28",
|
|
43
|
-
"@unocss/config": "0.55.
|
|
44
|
-
"@unocss/core": "0.55.
|
|
43
|
+
"@unocss/config": "0.55.2",
|
|
44
|
+
"@unocss/core": "0.55.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "unbuild",
|