This PR fixes the return value of onLoad hook of the StyleX esbuild plugin (of the if branch when babel transform returns no code). Previously, it would return an object with property code, which resulted in undefined output of the plugin.
Linked PR/Issues
I did not create an issue for this since it's a very small fix.
What changed / motivation ?
This PR fixes the return value of
onLoad
hook of the StyleX esbuild plugin (of the if branch when babel transform returns no code). Previously, it would return an object with propertycode
, which resulted in undefined output of the plugin.Linked PR/Issues
I did not create an issue for this since it's a very small fix.
Additional Context
Screenshots, Tests, Anything Else
Pre-flight checklist