Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
Co-authored-by: 翠 / green <green@sapphi.red>
  • Loading branch information
poyoho and sapphi-red committed Aug 18, 2022
1 parent 8422fbc commit 58eeb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/asset.ts
Expand Up @@ -61,7 +61,7 @@ export function renderAssetUrlInJS(
// In both cases, the wrapping should already be fine

while ((match = assetUrlRE.exec(code))) {
s ||= s = new MagicString(code)
s ||= new MagicString(code)
const [full, hash, postfix = ''] = match
// some internal plugins may still need to emit chunks (e.g. worker) so
// fallback to this.getFileName for that. TODO: remove, not needed
Expand Down

0 comments on commit 58eeb69

Please sign in to comment.