File tree 1 file changed +28
-11
lines changed
packages/react-error-overlay
1 file changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,24 @@ module.exports = {
19
19
rules : [
20
20
{
21
21
test : / \. j s $ / ,
22
- include : path . resolve ( __dirname , './src' ) ,
22
+ include : [
23
+ path . resolve ( __dirname , './src' ) ,
24
+ path . dirname (
25
+ require . resolve ( 'chalk' , {
26
+ paths : path . dirname ( require . resolve ( '@babel/code-frame' ) ) ,
27
+ } )
28
+ ) ,
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
+ )
38
+ ) ,
39
+ ] ,
23
40
use : 'babel-loader' ,
24
41
} ,
25
42
] ,
@@ -34,15 +51,15 @@ module.exports = {
34
51
} ) ,
35
52
// This code is embedded as a string, so it would never be optimized
36
53
// elsewhere.
37
- // new webpack.optimize.UglifyJsPlugin({
38
- // compress: {
39
- // warnings: false,
40
- // comparisons: false,
41
- // },
42
- // output: {
43
- // comments: false,
44
- // ascii_only: false,
45
- // },
46
- // }),
54
+ new webpack . optimize . UglifyJsPlugin ( {
55
+ compress : {
56
+ warnings : false ,
57
+ comparisons : false ,
58
+ } ,
59
+ output : {
60
+ comments : false ,
61
+ ascii_only : false ,
62
+ } ,
63
+ } ) ,
47
64
] ,
48
65
} ;
You can’t perform that action at this time.
0 commit comments