@stylexswc/postcss-plugin 0.15.1 → 0.15.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/README.md +54 -13
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +94 -19
- package/dist/bundler.d.ts +2 -2
- package/dist/bundler.d.ts.map +1 -1
- package/dist/bundler.js +4 -8
- package/dist/discovery.d.ts +49 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +277 -0
- package/dist/index.d.ts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +39 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types.d.ts +11 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StyleXOptions } from '@stylexswc/rs-compiler';
|
|
1
|
+
import type { StyleXOptions, UseLayersType } from '@stylexswc/rs-compiler';
|
|
2
2
|
export interface StyleXPluginOption {
|
|
3
3
|
/**
|
|
4
4
|
* stylex options passed to stylex babel plugin
|
|
@@ -11,13 +11,22 @@ export interface StyleXPluginOption {
|
|
|
11
11
|
*
|
|
12
12
|
* @default false
|
|
13
13
|
*/
|
|
14
|
-
useCSSLayers?:
|
|
14
|
+
useCSSLayers?: UseLayersType;
|
|
15
15
|
/** Glob patterns or RegExp to exclude files */
|
|
16
16
|
exclude?: StyleXOptions['exclude'];
|
|
17
17
|
/** Glob patterns or RegExp to include files */
|
|
18
18
|
include?: StyleXOptions['include'];
|
|
19
19
|
cwd?: string;
|
|
20
20
|
isDev?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Override import sources at the PostCSS plugin level.
|
|
23
|
+
* When provided, takes precedence over rsOptions.importSources.
|
|
24
|
+
* When omitted, falls back to rsOptions.importSources, then built-in defaults.
|
|
25
|
+
*/
|
|
26
|
+
importSources?: Array<string | {
|
|
27
|
+
from: string;
|
|
28
|
+
as?: string;
|
|
29
|
+
}>;
|
|
21
30
|
}
|
|
22
31
|
export interface TransformOptions {
|
|
23
32
|
shouldSkipTransformError?: boolean;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;IAChE;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,+CAA+C;IAC/C,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/postcss-plugin",
|
|
3
3
|
"description": "StyleX PostCSS plugin with NAPI-RS compiler",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@stylexjs/babel-plugin": "^0.18.
|
|
22
|
-
"@stylexswc/rs-compiler": "0.15.
|
|
21
|
+
"@stylexjs/babel-plugin": "^0.18.2",
|
|
22
|
+
"@stylexswc/rs-compiler": "0.15.2",
|
|
23
23
|
"fast-glob": "^3.3.3",
|
|
24
24
|
"glob-parent": "^6.0.2",
|
|
25
25
|
"is-glob": "^4.0.3",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/types": "^7.29.0",
|
|
30
|
-
"@stylexswc/eslint-config": "0.15.
|
|
31
|
-
"@stylexswc/typescript-config": "0.15.
|
|
30
|
+
"@stylexswc/eslint-config": "0.15.2",
|
|
31
|
+
"@stylexswc/typescript-config": "0.15.2",
|
|
32
32
|
"@types/babel__core": "^7.20.5",
|
|
33
33
|
"@types/glob-parent": "^5.1.3",
|
|
34
34
|
"@types/is-glob": "^4.0.4",
|