pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
808 stars 46 forks source link

Wrap static blocks by fragment #84

Closed ezhlobo closed 5 years ago

ezhlobo commented 5 years ago

Initial issue: #82 Don't add own keys in static blocks

It makes transpiling this

if true
  div First
  div Second

Into this:

true ? (
  <React.Fragment>
    <div>First</div>
    <div>Second</div>
  </React.Fragment>
) : ...
codecov-io commented 5 years ago

Codecov Report

Merging #84 into next will decrease coverage by 0.11%. The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next      #84      +/-   ##
==========================================
- Coverage   87.04%   86.92%   -0.12%     
==========================================
  Files          21       21              
  Lines         463      459       -4     
  Branches      112      112              
==========================================
- Hits          403      399       -4     
+ Misses         55       54       -1     
- Partials        5        6       +1
Impacted Files Coverage Δ
src/block-key.js 90.62% <ø> (-1.49%) :arrow_down:
src/visitors/Case.js 77.27% <0%> (ø) :arrow_up:
src/utils/jsx.js 100% <100%> (ø) :arrow_up:
src/visitors/Conditional.js 100% <100%> (ø) :arrow_up:
src/visitors/Each.js 96.29% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 048568c...eb5316f. Read the comment docs.