|
@@ -111,9 +111,9 @@ def load_dynamic_serializer():
|
|
|
if line.startswith("import "):
|
|
|
if 'from "$/' in line or 'from "/' in line:
|
|
|
module_code_lines[ix] = (
|
|
|
- line.replace("import ", "const ", 1).replace(
|
|
|
- " from ", " = window['__reflex'][", 1
|
|
|
- )
|
|
|
+ line.replace("import ", "const ", 1)
|
|
|
+ .replace(" as ", ": ")
|
|
|
+ .replace(" from ", " = window['__reflex'][", 1)
|
|
|
+ "]"
|
|
|
)
|
|
|
else:
|