Skip to content

Commit

Permalink
fix(blog): variable conflict (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: mengxianliang <[email protected]>
  • Loading branch information
webLiang and mengxianliang authored Apr 30, 2024
1 parent 19e4b25 commit d71acd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plugins/inline-vite-preload-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function inlineVitePreloadScript(): PluginOption {
}
}
return {
code: __vitePreload + code.split(`\n`).slice(1).join(`\n`),
code: `(function () {${__vitePreload + code.split(`\n`).slice(1).join(`\n`)}})()`,
map: new MagicString(code).generateMap({ hires: true }),
};
},
Expand Down

0 comments on commit d71acd9

Please sign in to comment.