@stylexjs/rollup-plugin 0.15.3 → 0.16.0

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/es/index.mjs CHANGED
@@ -41,7 +41,10 @@ export default function stylexPlugin({
41
41
  generateBundle() {
42
42
  const rules = Object.values(stylexRules).flat();
43
43
  if (rules.length > 0) {
44
- const collectedCSS = stylexBabelPlugin.processStylexRules(rules, useCSSLayers);
44
+ const collectedCSS = stylexBabelPlugin.processStylexRules(rules, {
45
+ useLayers: useCSSLayers,
46
+ enableLTRRTLComments: options?.enableLTRRTLComments
47
+ });
45
48
  const {
46
49
  code
47
50
  } = transform({
package/lib/index.js CHANGED
@@ -47,7 +47,10 @@ function stylexPlugin({
47
47
  generateBundle() {
48
48
  const rules = Object.values(stylexRules).flat();
49
49
  if (rules.length > 0) {
50
- const collectedCSS = _babelPlugin.default.processStylexRules(rules, useCSSLayers);
50
+ const collectedCSS = _babelPlugin.default.processStylexRules(rules, {
51
+ useLayers: useCSSLayers,
52
+ enableLTRRTLComments: options?.enableLTRRTLComments
53
+ });
51
54
  const {
52
55
  code
53
56
  } = (0, _lightningcss.transform)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.15.3",
3
+ "version": "0.16.0",
4
4
  "description": "Rollup plugin for StyleX",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/es/index.mjs",
@@ -35,7 +35,7 @@
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.15.3",
38
+ "@stylexjs/babel-plugin": "0.16.0",
39
39
  "lightningcss": "^1.29.1"
40
40
  },
41
41
  "devDependencies": {