We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb938f8 commit 792e900Copy full SHA for 792e900
apps/svelte.dev/src/routes/(authed)/playground/[id]/+page.svelte
@@ -118,10 +118,9 @@
118
async function download() {
119
const { files: components, imports } = repl.toJSON();
120
121
- const files: Array<{ path: string; data: string }> =
122
- await // TODO this is a bit of a cyclic dependency: we assume that the site
123
- // does provide a template at this position which matches our expectations
124
- (await fetch('/svelte-template.json')).json();
+ const files: Array<{ path: string; data: string }> = await (
+ await fetch('/svelte-template.json')
+ ).json();
125
126
if (imports.length > 0) {
127
const idx = files.findIndex(({ path }) => path === 'package.json');
0 commit comments