@stylexjs/rollup-plugin 0.5.1 → 0.6.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/rollup-plugin",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "Rollup plugin for StyleX",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -20,8 +20,8 @@
20
20
  "testEnvironment": "node"
21
21
  },
22
22
  "dependencies": {
23
- "@babel/core": "^7.23.6",
24
- "@stylexjs/babel-plugin": "0.5.1",
23
+ "@babel/core": "^7.23.9",
24
+ "@stylexjs/babel-plugin": "0.6.1",
25
25
  "@babel/plugin-syntax-flow": "^7.23.3",
26
26
  "@babel/plugin-syntax-jsx": "^7.23.3",
27
27
  "@babel/plugin-syntax-typescript": "^7.23.3"
package/src/index.js CHANGED
@@ -109,13 +109,13 @@ export default function stylexPlugin({
109
109
 
110
110
  if (
111
111
  !dev &&
112
- (metadata: $FlowFixMe).stylex != null &&
113
- (metadata: $FlowFixMe).stylex.length > 0
112
+ (metadata as $FlowFixMe).stylex != null &&
113
+ (metadata as $FlowFixMe).stylex.length > 0
114
114
  ) {
115
- stylexRules[id] = (metadata: $FlowFixMe).stylex;
115
+ stylexRules[id] = (metadata as $FlowFixMe).stylex;
116
116
  }
117
117
 
118
- return { code, map: (map: $FlowFixMe), meta: (metadata: $FlowFixMe) };
118
+ return { code, map: map as $FlowFixMe, meta: metadata as $FlowFixMe };
119
119
  },
120
120
  };
121
121
  }