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

feat(ecmascript): support jsximport/runtime options #4198

Merged
merged 1 commit into from Mar 20, 2023

Conversation

kwonoj
Copy link
Contributor

@kwonoj kwonoj commented Mar 14, 2023

Description

First part of WEB-719 implementation. PR expands enable_jsx option to accept few more configuration point to jsx transforms, mainly its import source. We'll likely to expand options more in the future.

One thing I noted in the code but didn't make change is enable_react_refresh, if it needs to be under the jsx option or should be independent. Given react_refresh only should be enabled when jsx is enabled, for me it makes more sense to move it.

@kwonoj kwonoj requested a review from a team as a code owner March 14, 2023 18:31
@vercel
Copy link

vercel bot commented Mar 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
examples-native-web 🔄 Building (Inspect) Mar 20, 2023 at 3:11PM (UTC)
10 Ignored Deployments
Name Status Preview Comments Updated
examples-basic-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-cra-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-gatsby-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-kitchensink-blog ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-nonmonorepo ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-svelte-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-tailwind-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
examples-vite-web ⬜️ Ignored (Inspect) Mar 20, 2023 at 3:11PM (UTC)
turbo-site ⬜️ Ignored (Inspect) Visit Preview Mar 20, 2023 at 3:11PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2023

🟢 CI successful 🟢

Thanks

@kwonoj kwonoj added the pr: automerge Kodiak will merge these automatically after checks pass label Mar 20, 2023
@kodiakhq kodiakhq bot merged commit a52e66b into main Mar 20, 2023
27 checks passed
@kodiakhq kodiakhq bot deleted the feat-jsx-import-source branch March 20, 2023 23:33
@sokra
Copy link
Member

sokra commented Mar 21, 2023

This PR doesn't have a next.js counter part...

Comment on lines +38 to +39
// swc.jsc.transform.react.runtime,
runtime: OptionStringVc,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rather this be an enum instead, since there are only two valid values. This avoids downstream validation.

alexkirsz added a commit to vercel/next.js that referenced this pull request Mar 21, 2023
Updates Turbopack to latest nightly and fix build errors.

# New features

* vercel/turbo#4198

# Bug Fixes

* vercel/turbo#4241

# Misc.

* vercel/turbo#4249

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: automerge Kodiak will merge these automatically after checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants