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+
13if ( typeof module !== 'undefined' ) {
24 // eslint-disable-next-line no-undef -- ignore
35 module . exports = function ( ) {
Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ const config = {
2525 }
2626 } ,
2727 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+ } ) ,
2836 stringReplace ( {
2937 test : / e s l i n t - p l u g i n - s v e l t e 3 .j s / u,
3038 search : 'Object\\.keys\\(__require\\.cache\\)' ,
@@ -55,10 +63,7 @@ const config = {
5563 replace : ( original ) => ` // ${ original } ` ,
5664 flags : ''
5765 } )
58- ] ,
59- optimizeDeps : {
60- // include: ["assert"],
61- }
66+ ]
6267 }
6368 }
6469} ;
You can’t perform that action at this time.
0 commit comments