Skip to content

Commit 0708694

Browse files
authored
fix: avoid ERR_REQUIRE_ESM during reflex export with rx.code_block
Fixes #6054
1 parent 1e71398 commit 0708694

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reflex/compiler/templates.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,11 @@ def vite_config_template(
581581
}},
582582
}},
583583
}},
584+
ssr: {{
585+
noExternal: config.command === "build"
586+
? ["react-syntax-highlighter", "refractor"]
587+
: [],
588+
}},
584589
experimental: {{
585590
enableNativePlugin: false,
586591
hmr: {"true" if experimental_hmr else "false"},

0 commit comments

Comments
 (0)