@stylexjs/rollup-plugin 0.12.0 → 0.13.1

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
@@ -123,7 +123,7 @@ export default function stylexPlugin() {
123
123
  }
124
124
  }
125
125
  }
126
- if (!dev && metadata.stylex != null && metadata.stylex.length > 0) {
126
+ if (!options.runtimeInjection && metadata.stylex != null && metadata.stylex.length > 0) {
127
127
  stylexRules[id] = metadata.stylex;
128
128
  }
129
129
  return {
package/lib/index.js CHANGED
@@ -129,7 +129,7 @@ function stylexPlugin() {
129
129
  }
130
130
  }
131
131
  }
132
- if (!dev && metadata.stylex != null && metadata.stylex.length > 0) {
132
+ if (!options.runtimeInjection && metadata.stylex != null && metadata.stylex.length > 0) {
133
133
  stylexRules[id] = metadata.stylex;
134
134
  }
135
135
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
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.12.0",
38
+ "@stylexjs/babel-plugin": "0.13.1",
39
39
  "lightningcss": "^1.29.1"
40
40
  },
41
41
  "devDependencies": {