Skip to content

Make .jsx files work again - #130

Open
MathieuMatiques wants to merge 4 commits into
tobspr-games:masterfrom
MathieuMatiques:parse-jsx
Open

Make .jsx files work again#130
MathieuMatiques wants to merge 4 commits into
tobspr-games:masterfrom
MathieuMatiques:parse-jsx

Conversation

@MathieuMatiques

Copy link
Copy Markdown

This PR fixes another regression from the transition to SWC. Before this fix, .jsx files were not parsed correctly by SWC and failed to build.

Although the new config tells SWC to parse everything as TSX for simplicity, I have not found it to harm build times at all.

@MathieuMatiques

Copy link
Copy Markdown
Author

Update: SWC now has the ability to automatically detect the syntax of JS, TS, JSX, and TSX files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant