We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f053551 commit 6eae79cCopy full SHA for 6eae79c
src/py/reactpy/reactpy/backend/flask.py
@@ -165,7 +165,7 @@ def send_assets_dir(path: str = "") -> Any:
165
166
@api_blueprint.route(f"/{MODULES_PATH.name}/<path:path>")
167
def send_modules_dir(path: str = "") -> Any:
168
- return send_file(safe_web_modules_dir_path(path))
+ return send_file(safe_web_modules_dir_path(path), mimetype='text/javascript')
169
170
index_html = read_client_index_html(options)
171
0 commit comments