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 |
gregberge
left a comment
There was a problem hiding this comment.
- 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? |
|
|
||
| return { | ||
| name: 'svgr', | ||
| async transform(data, id) { |
There was a problem hiding this comment.
Exactly. However things seems come to fixable on the rollup-plugin-typescript2 issue. So I'll revert the commit around .babelrc anyway!
Resolve #127