ソースを参照

Revert "dont load dependencies if there are none"

This reverts commit ae7d3f94f54326d4886b29da6edb1fc3062c45b3.
Rodja Trappe 2 年 前
コミット
bd7eaae20c
1 ファイル変更1 行追加2 行削除
  1. 1 2
      nicegui/routes.py

+ 1 - 2
nicegui/routes.py

@@ -66,8 +66,7 @@ def add_dependencies(py_filepath: str, dependencies: List[str] = []) -> None:
     if py_filepath in globals.dependencies:
         return
     globals.dependencies[py_filepath] = dependencies
-    if not dependencies:
-        return
+
     vue_filepath = os.path.splitext(os.path.realpath(py_filepath))[0] + '.js'
 
     for dependency in dependencies: