Skip to content

Commit

Permalink
Clean-up react-refresh preamble script
Browse files Browse the repository at this point in the history
  • Loading branch information
kucrut committed Oct 18, 2023
1 parent a8c98fd commit 12be147
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vite-for-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ function get_react_refresh_script_preamble( string $src ): string {
$script = <<< EOS
import RefreshRuntime from "{$src}";
RefreshRuntime.injectIntoGlobalHook(window);
window.__VITE_IS_MODERN__ = true;
window.\$RefreshReg$ = () => {};
window.\$RefreshSig$ = () => (type) => type;
window.__vite_plugin_react_preamble_installed__ = true;
Expand Down

0 comments on commit 12be147

Please sign in to comment.