Skip to content

Commit

Permalink
fix(babel): flaky resolution of emotion babel preset (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko authored Apr 6, 2022
1 parent 25c50bf commit cc7c19d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-crabs-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-frontend/babel-preset-mc-app': patch
---

Fix flaky resolution of `@emotion/babel-preset-css-prop`
2 changes: 1 addition & 1 deletion packages/babel-preset-mc-app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
// use the `@emotion/babel-plugin` plugin.
// https://emotion.sh/docs/@emotion/babel-preset-css-prop
options.runtime !== 'automatic' && [
'@emotion/babel-preset-css-prop',
require('@emotion/babel-preset-css-prop').default,
{
sourceMap: isEnvDevelopment,
autoLabel: 'dev-only',
Expand Down

1 comment on commit cc7c19d

@vercel
Copy link

@vercel vercel bot commented on cc7c19d Apr 6, 2022

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.