Skip to content

Commit

Permalink
Merge pull request #5 from ka2n/skip-fragment
Browse files Browse the repository at this point in the history
skip Fragment element
  • Loading branch information
siddharthkp authored Sep 17, 2021
2 parents 7b7cabd + 1dd0cf0 commit 33cb0db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-plugin-open-source/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module.exports = declare(api => {

state.file.set('hasJSX', true);

if (path.container.openingElement.name.name === 'Fragment') return

const sourceData = JSON.stringify({
filename: state.filename,
start: location.start.line,
Expand Down

0 comments on commit 33cb0db

Please sign in to comment.