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: set pragmafrag for jsx in v2 #3617

Merged
merged 3 commits into from Oct 11, 2019

Conversation

kirillrogovoy
Copy link
Contributor

↪️ Pull Request

I discovered the issue while tracking down #3446 here: #3446 (comment).

AFAIK, the issue has been solved in v1 with #2486, so I decided to port it to v2 as is.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@mischnic
Copy link
Member

mischnic commented Oct 8, 2019

Preact 10 now has support for fragments as well, could you add that as well (with autodetection just as JSX_PRAGMA, but for fragments with values for React and Preact)?

// preact
['@babel/plugin-transform-react-jsx', { pragma: 'h', pragmaFrag: 'Fragment' }],

@kirillrogovoy
Copy link
Contributor Author

I guess you mean this. :)

@devongovett devongovett merged commit f5e9ea8 into parcel-bundler:v2 Oct 11, 2019
@devongovett
Copy link
Member

Would be great to add a test for this, if you don't mind making a followup PR. 😄

@kirillrogovoy kirillrogovoy deleted the fix_jsx_pragmafrag branch October 16, 2019 09:04
@kirillrogovoy
Copy link
Contributor Author

Sure! Hang on for a bit.

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

Successfully merging this pull request may close these issues.

None yet

3 participants