File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
packages/react-error-overlay Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,27 @@ module.exports = {
23
23
path . resolve ( __dirname , './src' ) ,
24
24
path . dirname (
25
25
require . resolve ( 'chalk' , {
26
- paths : path . dirname ( require . resolve ( '@babel/code-frame' ) ) ,
26
+ paths : [ path . dirname ( require . resolve ( '@babel/code-frame' ) ) ] ,
27
27
} )
28
28
) ,
29
29
path . dirname (
30
- require . resolve (
31
- 'ansi-styles' ,
32
- path . dirname (
33
- require . resolve ( 'chalk' , {
34
- paths : path . dirname ( require . resolve ( '@babel/code-frame' ) ) ,
35
- } )
36
- )
37
- )
30
+ require . resolve ( 'ansi-styles' , {
31
+ paths : [
32
+ path . dirname (
33
+ require . resolve ( 'chalk' , {
34
+ paths : [ path . dirname ( require . resolve ( '@babel/code-frame' ) ) ] ,
35
+ } )
36
+ ) ,
37
+ ] ,
38
+ } )
38
39
) ,
39
40
] ,
40
- use : 'babel-loader' ,
41
+ use : {
42
+ loader : 'babel-loader' ,
43
+ options : {
44
+ presets : [ 'react-app' ] ,
45
+ } ,
46
+ } ,
41
47
} ,
42
48
] ,
43
49
} ,
You can’t perform that action at this time.
0 commit comments