Skip to content

Commit

Permalink
Remove runtime option from @emotion/babel-preset-css-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Nov 9, 2020
1 parent 0d34200 commit e5ef051
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 830 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-pears-design.md
@@ -0,0 +1,5 @@
---
'@emotion/babel-preset-css-prop': major
---

Removed `runtime` option that has been introduced to this preset and deprecated shortly afther that. If you want to configure `runtime: "automatic"` just replace `@emotion/babel-preset-css-prop` with `@babel/preset-react` and `@emotion/babel-plugin`. You can find out how to configure things properly here: https://emotion.sh/docs/css-prop#babel-preset
9 changes: 7 additions & 2 deletions babel.config.js
Expand Up @@ -34,15 +34,20 @@ module.exports = api => {
filename &&
isTestFile(filename) &&
filename.includes('automatic-runtime'),
presets: [[emotionDevPreset, { runtime: 'automatic' }]]
presets: [
[emotionDevPreset, { runtime: 'automatic', useEmotionPlugin: true }]
]
},
{
test: filename =>
filename &&
isTestFile(filename) &&
filename.includes('automatic-dev-runtime'),
presets: [
[emotionDevPreset, { runtime: 'automatic', development: true }]
[
emotionDevPreset,
{ runtime: 'automatic', development: true, useEmotionPlugin: true }
]
]
}
]
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e5ef051

Please sign in to comment.