Skip to content

Commit

Permalink
fix(babel): pragma frag to be Fragment not React.Fragment (#1844)
Browse files Browse the repository at this point in the history
* fix(babel): pragma frag to be Fragment not React.Fragment

* Create fifty-jeans-shave.md
  • Loading branch information
tdeekens authored Oct 31, 2020
1 parent 9a74fad commit 56d4361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-jeans-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@commercetools-frontend/babel-preset-mc-app": patch
---

fix(babel): pragma frag to be Fragment not React.Fragment
4 changes: 3 additions & 1 deletion packages/babel-preset-mc-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ module.exports = function getBabePresetConfigForMcApp(api, opts = {}) {
development: isEnvDevelopment || isEnvTest,
// Will use the native built-in instead of trying to polyfill
// behavior for any plugins that require one.
...(opts.runtime !== 'automatic' ? { useBuiltIns: true } : {}),
...(opts.runtime !== 'automatic'
? { useBuiltIns: true, pragmaFrag: 'Fragment' }
: {}),
runtime: opts.runtime || 'classic',
},
],
Expand Down

1 comment on commit 56d4361

@vercel
Copy link

@vercel vercel bot commented on 56d4361 Oct 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.