Skip to content

Commit

Permalink
fix(webpack): babel preset syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Oct 30, 2020
1 parent 514d711 commit 546d940
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-lies-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-frontend/mc-scripts': patch
---

Fix babel preset syntax
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,14 @@ module.exports = ({
options: {
babelrc: false,
presets: [
require.resolve('@commercetools-frontend/babel-preset-mc-app'),
{
runtime: hasJsxRuntime() ? 'automatic' : 'classic',
},
[
require.resolve(
'@commercetools-frontend/babel-preset-mc-app'
),
{
runtime: hasJsxRuntime() ? 'automatic' : 'classic',
},
],
],
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,14 @@ module.exports = ({ distPath, entryPoint, sourceFolders, toggleFlags }) => {
options: {
babelrc: false,
presets: [
require.resolve(
'@commercetools-frontend/babel-preset-mc-app'
),
{
runtime: hasJsxRuntime() ? 'automatic' : 'classic',
},
[
require.resolve(
'@commercetools-frontend/babel-preset-mc-app'
),
{
runtime: hasJsxRuntime() ? 'automatic' : 'classic',
},
],
],
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
Expand Down

0 comments on commit 546d940

Please sign in to comment.