File tree Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
3
"@craco/craco" : " ^5.6.2" ,
4
+ "@emotion/core" : " ^10.0.27" ,
5
+ "@emotion/styled" : " ^10.0.27" ,
4
6
"@reduxjs/toolkit" : " ^1.1.0" ,
5
7
"@testing-library/jest-dom" : " ^4.2.4" ,
6
8
"@testing-library/react" : " ^9.3.2" ,
12
14
"@types/react-redux" : " ^7.1.5" ,
13
15
"@types/react-router" : " ^5.1.3" ,
14
16
"@types/react-router-dom" : " ^5.1.3" ,
17
+ "babel-plugin-emotion" : " ^10.0.27" ,
15
18
"eslint-plugin-simple-import-sort" : " ^5.0.0" ,
16
19
"react" : " ^16.12.0" ,
17
20
"react-dom" : " ^16.12.0" ,
Original file line number Diff line number Diff line change 1
- const path = require ( " path" ) ;
2
- const resolve = arg => path . resolve ( __dirname , arg ) ;
1
+ const path = require ( ' path' )
2
+ const resolve = arg => path . resolve ( __dirname , arg )
3
3
4
4
module . exports = function ( ) {
5
5
return {
6
+ babel : {
7
+ plugins : [
8
+ [
9
+ 'emotion' ,
10
+ {
11
+ labelFormat : '[filename]--[local]' ,
12
+ } ,
13
+ ] ,
14
+ ] ,
15
+ } ,
6
16
webpack : {
7
17
alias : {
8
- "@" : resolve ( " src" )
9
- }
18
+ '@' : resolve ( ' src' ) ,
19
+ } ,
10
20
} ,
11
21
jest : {
12
22
configure : {
13
23
moduleNameMapper : {
14
- " ^@/(.*)$" : " <rootDir>/src/$1"
15
- }
16
- }
17
- }
18
- } ;
19
- } ;
24
+ ' ^@/(.*)$' : ' <rootDir>/src/$1' ,
25
+ } ,
26
+ } ,
27
+ } ,
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments