From e22befd8e0a42e73f45db55dda85c46fd592f486 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 3 Jun 2024 18:09:05 -0400 Subject: [PATCH] simplify --- playgrounds/sandbox/run.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/playgrounds/sandbox/run.js b/playgrounds/sandbox/run.js index 05ac772af0..dffcc0af58 100644 --- a/playgrounds/sandbox/run.js +++ b/playgrounds/sandbox/run.js @@ -29,9 +29,7 @@ function mkdirp(dir) { const svelte_modules = glob('**/*.svelte', { cwd: `${cwd}/input` }); const js_modules = glob('**/*.js', { cwd: `${cwd}/input` }); -/** @type {Array<'client'|'server'>} */ -const compile_types = ['client', 'server']; -for (const generate of compile_types) { +for (const generate of /** @type {const} */ (['client', 'server'])) { console.error(`\n--- generating ${generate} ---\n`); for (const file of svelte_modules) { const input = `${cwd}/input/${file}`;