File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ 'assert shim' ;
2
+
1
3
if ( typeof module !== 'undefined' ) {
2
4
// eslint-disable-next-line no-undef -- ignore
3
5
module . exports = function ( ) {
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ const config = {
25
25
}
26
26
} ,
27
27
plugins : [
28
+ stringReplace ( {
29
+ test : / e s l i n t - s c o p e | s v e l t e - e s l i n t - p a r s e r .j s / u,
30
+ search : 'require\\("assert"\\)' ,
31
+ replace : ( original ) => {
32
+ return `(()=>{});//${ original } ` ;
33
+ } ,
34
+ flags : ''
35
+ } ) ,
28
36
stringReplace ( {
29
37
test : / e s l i n t - p l u g i n - s v e l t e 3 .j s / u,
30
38
search : 'Object\\.keys\\(__require\\.cache\\)' ,
@@ -55,10 +63,7 @@ const config = {
55
63
replace : ( original ) => ` // ${ original } ` ,
56
64
flags : ''
57
65
} )
58
- ] ,
59
- optimizeDeps : {
60
- // include: ["assert"],
61
- }
66
+ ]
62
67
}
63
68
}
64
69
} ;
You can’t perform that action at this time.
0 commit comments