diff --git a/reflex/compiler/templates.py b/reflex/compiler/templates.py index 2abcb6dd533..7bff8ef3441 100644 --- a/reflex/compiler/templates.py +++ b/reflex/compiler/templates.py @@ -581,6 +581,11 @@ def vite_config_template( }}, }}, }}, + ssr: {{ + noExternal: config.command === "build" + ? ["react-syntax-highlighter", "refractor"] + : [], + }}, experimental: {{ enableNativePlugin: false, hmr: {"true" if experimental_hmr else "false"},