diff --git a/lib/hmr.ts b/lib/hmr.ts index 2a6b698..74b72ed 100644 --- a/lib/hmr.ts +++ b/lib/hmr.ts @@ -25,6 +25,9 @@ export function hmr(enableViteHmrForModes: string[] = ['development']): Plugin { } }, transformIndexHtml(html) { + if (!process.env['EMBER_VITE_HMR_ENABLED']) { + return html; + } return ( `