File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,18 +32,18 @@ function fixWasmDataUrl(): Plugin {
3232 const matches = [ ...code . matchAll ( dataUrlPattern ) ] ;
3333 if ( matches . length === 0 ) return null ;
3434
35- const s = new MagicString ( code ) ;
35+ const magicString = new MagicString ( code ) ;
3636 for ( const match of matches ) {
3737 if ( match . index === undefined ) continue ;
3838 const start = match . index ;
3939 const end = start + match [ 0 ] . length ;
4040 const replacement = `new URL(${ match [ 1 ] } )` ;
41- s . overwrite ( start , end , replacement ) ;
41+ magicString . overwrite ( start , end , replacement ) ;
4242 }
4343
4444 return {
45- code : s . toString ( ) ,
46- map : s . generateMap ( { hires : true } ) ,
45+ code : magicString . toString ( ) ,
46+ map : magicString . generateMap ( { hires : true } ) ,
4747 } ;
4848 } ,
4949 } ;
You can’t perform that action at this time.
0 commit comments