Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align jsx runtime for optimized dependencies #174

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

ArnaudBarre
Copy link
Member

No description provided.

@ArnaudBarre ArnaudBarre self-assigned this Nov 16, 2023
src/index.ts Outdated
@@ -83,6 +83,7 @@ const react = (_options?: Options): PluginOption[] => {
esbuild: false,
optimizeDeps: {
include: [`${options.jsxImportSource}/jsx-dev-runtime`],
esbuildOptions: { jsx: "transform" },
Copy link
Member

Choose a reason for hiding this comment

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

Probably I'm missing something, but why is it here "transform" and in the other plugin "automatic"? vitejs/vite-plugin-react@96b66ed#diff-d1f942b9a74f586a80bca3733150b7c692a6460e8350bc19cbbad1d53f95b356R134

Copy link
Member Author

Choose a reason for hiding this comment

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

I was just try things locally and didn't revert 🙈

@ArnaudBarre ArnaudBarre force-pushed the optimized-deps-jsx-automatic branch from 29b2ecf to 91dc70c Compare November 16, 2023 13:43
@ArnaudBarre ArnaudBarre merged commit 3b6967f into main Nov 16, 2023
1 check passed
@ArnaudBarre ArnaudBarre deleted the optimized-deps-jsx-automatic branch November 16, 2023 14:06
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.

2 participants