Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rollup emotion

npm install @emotion/babel-preset-css-prop @emotion/babel-plugin @babel/core babel-loader

# .babelrc
{
  "presets": ["@babel/preset-react", "@emotion/babel-preset-css-prop"]]
}

# tsconfig.json
{
  "compilerOptions": {
   ...
   "target": "es6",
   "jsx": "preserve",
  }
}
 
PREVIOUS NEXT
Tagged: #rollup #emotion
ADD COMMENT
Topic
Name
6+9 =