Skip to content

Commit 237b181

Browse files
committed
Rename single character variable
1 parent 558a9a9 commit 237b181

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)