Skip to content

Conversation

rschristian
Copy link
Member

@rschristian rschristian commented Sep 28, 2025

Seems to be the way the ecosystem has moved over the last 4-5 years, therefore it's likely that the only thing holding us back from doing this was the rather boring work of renaming all these files? Lmk though, not sure if anyone else has opinions here.

"noEmit": true,
"skipLibCheck": false
"skipLibCheck": false,
"types": ["vitest/globals"]
Copy link
Member Author

@rschristian rschristian Sep 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this not an issue for everyone else btw? In every single file (beyond our TS tests, which also set this in their tsconfig.json files) I get hundreds of Cannot fine name 'describe'/'expect'. Do you need to install type definitions...

I'd almost have to assume folks are using other editor setups than me as it makes mine light up like a christmas tree without this

@rschristian rschristian force-pushed the test/switch-to-jsx-ext branch 3 times, most recently from 0be08da to e16aca4 Compare September 28, 2025 20:49
@rschristian rschristian force-pushed the test/switch-to-jsx-ext branch 3 times, most recently from e79586c to 40323e6 Compare September 28, 2025 22:26
@preactjs preactjs deleted a comment from coveralls Sep 28, 2025
Comment on lines -143 to -144
jsxImportSource: 'preact',
jsxDev: true
Copy link
Member Author

@rschristian rschristian Sep 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these settings did nothing and were actively incorrect as ESBuild seems to prefer our settings in the jsconfig.json instead, which uses the classic transform? Hence why we have the default React imports in compat & the /** @jsx createElement */ comments everywhere else?

Switched it over to use the classic transform options, i.e., jsxFactory & jsxFragment though, as mentioned, it seems entirely redundant as these are overridden.

@rschristian rschristian marked this pull request as ready for review September 28, 2025 22:58
@rschristian rschristian merged commit 8e3e4ce into main Sep 29, 2025
5 checks passed
@rschristian rschristian deleted the test/switch-to-jsx-ext branch September 29, 2025 13:59
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.

3 participants