Skip to content

Commit c89baf6

Browse files
authored
Do not generate pyodide resources file unless necessary (#8234)
1 parent 176d10c commit c89baf6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

panel/io/convert.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,11 @@ def convert_app(
552552

553553
# resources unpacked into emscripten MEMFS
554554
app_resources = {**wheels2pack, **resources_validated}
555-
app_resources_packfile = f'{app_name}.resources.zip'
556-
pack_files(app_resources, os.path.join(dest_path, app_resources_packfile))
555+
if app_resources:
556+
app_resources_packfile = f'{app_name}.resources.zip'
557+
pack_files(app_resources, os.path.join(dest_path, app_resources_packfile))
558+
else:
559+
app_resources_packfile = None
557560

558561
# try to convert the app to a standalone package
559562
try:

0 commit comments

Comments
 (0)