Skip to content

Commit 971fd8c

Browse files
author
Ives van Hoorne
committed
Specify default zip generator if no applicable one is found
Fixes codesandbox#658
1 parent f5a00a7 commit 971fd8c

File tree

1 file changed

+5
-0
lines changed
  • packages/app/src/app/store/providers/Utils/create-zip

1 file changed

+5
-0
lines changed

packages/app/src/app/store/providers/Utils/create-zip/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ export async function createZip(
174174
promise = import(/* webpackChunkName: 'svelte-zip' */ './svelte').then(
175175
generator => generator.default(zip, sandbox, modules, directories)
176176
);
177+
} else {
178+
// If no specific zip generator is found we will default to the full generator
179+
promise = import(/* webpackChunkName: 'full-zip' */ './full').then(
180+
generator => generator.default(zip, sandbox, modules, directories)
181+
);
177182
}
178183

179184
if (promise) {

0 commit comments

Comments
 (0)