You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug report] - plugin-transform-typescript doesn't function correctly with 2 pragmas #9549
Current Behavior
Using version 7.3.2 of plugin-transform-typescript results in unexpected behavior. Using /** @jsx jsx */ at the top of the file works for that one, but files that are just plain react will remove the import React from 'react'.
Versions of plugin-transform-typescript before 7.3.2 work as expected. I assume this PR: #9095 is the one that broke this.
File A gets output as expected. File B gets output as expected, except for the React import being removed. Adding /** @jsx React.createElement */ at the top does not fix this. Produces same result.
Expected behavior/code
I expect /** @jsx jsx */ to only effect the file it is in
Hey @vidarc! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
Activity
babel-bot commentedon Feb 20, 2019
Hey @vidarc! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.
nicolo-ribaudo commentedon Apr 15, 2019
Fixed by #9798