- Notifications
You must be signed in to change notification settings - Fork 397
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the issue
The problem is pretty obscure, but when I include the Stylex unplugin to my RSBuild project all of my WASM files are getting corrupted.
I narrowed it down to a missing transformInclude which forces unplugin to read all the files before we can filter some for transform. Somehow this process corrupts the WASM files (which are very large output binary files).
If I include transformInclude to the unplugin code everything seems to be working fine by preventing unplugin to read the sources of these WASM files.
transformInclude(id) { const JS_LIKE_RE = /\.[cm]?[jt]sx?(\?|$)/; return JS_LIKE_RE.test(id); }, async transform(code, id) { ... I can follow up with a PR to add this if this makes sense to the maintainers.
Expected behavior
WASM files should not be affected by StyleX
Steps to reproduce
Include StyleX unplugin to any Rsbuild project with WASM files
Test case
No response
Additional comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working