[babel-plugin] Support ESM module resolution
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 10.3k
- Forks
- 481
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 13
Description
### 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.
```js
[
"@stylexjs/babel-plugin",
{
unstable_moduleResolution: {
type: "ESM"
}
}
]
```
Looking forward, thanks!
Contributor guide
Assessment
This issue has not been assessed yet.