You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The web is moving away from CommonJS, and StyleX is currently the only reason I still need to distribute my libraries in CommonJS.
Tooling gets significantly simpler once I can drop CommonJS support, so I’m hoping you can support ESM soon—if it doesn’t introduce too much complexity on your side.
I'm not able to get the babel/postcss plugins to work with my Vite setup, and since this developer mentioned issues as well until he split the configuration into dedicated cjs files .babelrc.cjs and postcss.config.cjs, and I've had other issues in the past integrating commonjs packages in this setup, so I thought it could be a potential cause.
But the issue does not directly mention commonjs, so you may be right, it may be already working with ESM. The issue is the typical:
Unexpected 'stylex.create' call at runtime. Styles must be compiled by '@stylexjs/babel-plugin'.
Describe the feature request
The web is moving away from CommonJS, and StyleX is currently the only reason I still need to distribute my libraries in CommonJS.
Tooling gets significantly simpler once I can drop CommonJS support, so I’m hoping you can support ESM soon—if it doesn’t introduce too much complexity on your side.
Looking forward, thanks!
The text was updated successfully, but these errors were encountered: