@stylexjs/rollup-plugin 0.18.0 → 0.18.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/lib/index.d.ts CHANGED
@@ -20,7 +20,13 @@ export type PluginOptions = Readonly<
20
20
  plugins?: ReadonlyArray<PluginItem>;
21
21
  presets?: ReadonlyArray<PluginItem>;
22
22
  }>;
23
- useCSSLayers?: boolean;
23
+ useCSSLayers?:
24
+ | boolean
25
+ | Readonly<{
26
+ before?: ReadonlyArray<string>;
27
+ after?: ReadonlyArray<string>;
28
+ prefix?: string;
29
+ }>;
24
30
  lightningcssOptions?: Omit<
25
31
  TransformOptions<{}>,
26
32
  'code' | 'filename' | 'visitor'
@@ -32,7 +38,13 @@ export type PluginOptions = Readonly<
32
38
  plugins?: ReadonlyArray<PluginItem>;
33
39
  presets?: ReadonlyArray<PluginItem>;
34
40
  }>;
35
- useCSSLayers?: boolean;
41
+ useCSSLayers?:
42
+ | boolean
43
+ | Readonly<{
44
+ before?: ReadonlyArray<string>;
45
+ after?: ReadonlyArray<string>;
46
+ prefix?: string;
47
+ }>;
36
48
  lightningcssOptions?: Omit<
37
49
  TransformOptions<{}>,
38
50
  'code' | 'filename' | 'visitor'
package/lib/index.js.flow CHANGED
@@ -18,7 +18,13 @@ export type PluginOptions = $ReadOnly<{
18
18
  plugins?: $ReadOnlyArray<PluginItem>,
19
19
  presets?: $ReadOnlyArray<PluginItem>,
20
20
  }>,
21
- useCSSLayers?: boolean,
21
+ useCSSLayers?:
22
+ | boolean
23
+ | $ReadOnly<{
24
+ before?: $ReadOnlyArray<string>,
25
+ after?: $ReadOnlyArray<string>,
26
+ prefix?: string,
27
+ }>,
22
28
  lightningcssOptions?: Omit<
23
29
  TransformOptions<{}>,
24
30
  'code' | 'filename' | 'visitor',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "Rollup plugin for StyleX",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/es/index.mjs",
@@ -35,14 +35,14 @@
35
35
  "@babel/plugin-syntax-flow": "^7.26.0",
36
36
  "@babel/plugin-syntax-jsx": "^7.25.9",
37
37
  "@babel/plugin-syntax-typescript": "^7.25.9",
38
- "@stylexjs/babel-plugin": "0.18.0",
38
+ "@stylexjs/babel-plugin": "0.18.2",
39
39
  "lightningcss": "^1.29.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@rollup/plugin-babel": "^6.0.4",
43
43
  "@rollup/plugin-commonjs": "^28.0.1",
44
44
  "@rollup/plugin-node-resolve": "^15.3.0",
45
- "rollup": "^4.24.0"
45
+ "rollup": "^4.59.0"
46
46
  },
47
47
  "files": [
48
48
  "flow_modules/*",