-
-
Notifications
You must be signed in to change notification settings - Fork 425
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 to work with rollup-plugin-typescript2 #147
Conversation
Codecov Report
@@ Coverage Diff @@
## master #147 +/- ##
==========================================
+ Coverage 88.7% 88.76% +0.05%
==========================================
Files 26 26
Lines 434 436 +2
Branches 127 110 -17
==========================================
+ Hits 385 387 +2
- Misses 36 38 +2
+ Partials 13 11 -2
Continue to review full report at Codecov.
|
@vwxyutarooo thanks for your research and your PR! In fact we have another problem. The Babel transform should have its own configuration and not use the By modifying the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove change in Babel config
- Add a specific Babel config (only
@babel/preset-env
) in the rollup plugin
@neoziro thanks for checking my PR! Now I've fixed common |
Thanks! I am sorry maybe I wasn't clear in my explanations. A |
Sorry for my miss understood. Your suggestion changes result of source code from SVG right? However, What this PR needed is remove async/await syntax from
Because 1 or 2 seems take quite a while, Is it possible to provide rollup plugin with condition 3 until 1 or 2 fixes? |
@@ -8,6 +8,7 @@ function svgrPlugin(options = {}) { | |||
const { babel = true } = options | |||
|
|||
return { | |||
name: 'svgr', | |||
async transform(data, id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vwxyutarooo so the problem is here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. However things seems come to fixable on the rollup-plugin-typescript2 issue. So I'll revert the commit around .babelrc
anyway!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK nice!
Resolve #127