Load React + Emotion from CDN URLs, use globals
Remove @emotion/babel-preset-css-prop and import { jsx } from
@emotion/core directly instead so Rollup can preserve imports order when
bundling (instead of @emotion/core automatically inserting itself as the
first import).
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
{
|
||||
"presets": [
|
||||
["@babel/preset-env", { "loose": true }],
|
||||
"@babel/preset-react",
|
||||
"@emotion/babel-preset-css-prop"
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
["@babel/plugin-proposal-class-properties", { "loose": true }]
|
||||
|
||||
Reference in New Issue
Block a user