Skip to content

Commit

Permalink
fix: set default pragmaFrag option 🐛
Browse files Browse the repository at this point in the history
fix #2305
  • Loading branch information
lili21 committed Feb 27, 2019
1 parent f269e3e commit 722e03a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/parcel-bundler/src/transforms/babel/jsx.js
Expand Up @@ -74,7 +74,15 @@ async function getJSXConfig(asset, isSourceModule) {
internal: true,
babelVersion: 7,
config: {
plugins: [[require('@babel/plugin-transform-react-jsx'), {pragma}]]
plugins: [
[
require('@babel/plugin-transform-react-jsx'),
{
pragma,
pragmaFrag: 'React.Fragment'
}
]
]
}
};
}
Expand Down

0 comments on commit 722e03a

Please sign in to comment.