diff --git a/src/py/reactpy/reactpy/backend/flask.py b/src/py/reactpy/reactpy/backend/flask.py index 2e00e8f64..e789655f0 100644 --- a/src/py/reactpy/reactpy/backend/flask.py +++ b/src/py/reactpy/reactpy/backend/flask.py @@ -165,7 +165,7 @@ def send_assets_dir(path: str = "") -> Any: @api_blueprint.route(f"/{MODULES_PATH.name}/") def send_modules_dir(path: str = "") -> Any: - return send_file(safe_web_modules_dir_path(path)) + return send_file(safe_web_modules_dir_path(path), mimetype='text/javascript') index_html = read_client_index_html(options)