Skip to content

Commit

Permalink
feat: add babelrc file to use emotion
Browse files Browse the repository at this point in the history
  • Loading branch information
seod0209 committed Mar 18, 2024
1 parent d4f7bdf commit cf97684
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
[
"next/babel",
{
"preset-react": {
"runtime": "automatic",
"importSource": "@emotion/react"
}
}
]
],
"plugins": ["@emotion/babel-plugin"]
}
11 changes: 9 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"jsxImportSource": "@emotion/react"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts","src",],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"src"
],
"exclude": ["node_modules"]
}

0 comments on commit cf97684

Please sign in to comment.