Skip to content

Commit d381252

Browse files
authored
suppress eval warnings (#5847)
1 parent eb2667e commit d381252

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reflex/compiler/templates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ def vite_config_template(base: str, hmr: bool, force_full_reload: bool):
557557
build: {{
558558
assetsDir: "{base}assets".slice(1),
559559
rollupOptions: {{
560+
onwarn(warning, warn) {{
561+
if (warning.code === "EVAL" && warning.id && warning.id.endsWith("state.js")) return;
562+
warn(warning);
563+
}},
560564
jsx: {{}},
561565
output: {{
562566
advancedChunks: {{

0 commit comments

Comments
 (0)