ncDocConverter/web/template/vitejs.tmpl.html

11 lines
390 B
HTML

{{define "vitejs"}}
{{if .ServerConfig.Development}}
<script type="module">
import RefreshRuntime from "{{.ServerConfig.SourceServer}}@react-refresh"
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
</script>
{{end}}
{{end}}