浏览代码

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: