Skip to content

Commit e22befd

Browse files
committed
simplify
1 parent 843a9ae commit e22befd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

playgrounds/sandbox/run.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ function mkdirp(dir) {
2929
const svelte_modules = glob('**/*.svelte', { cwd: `${cwd}/input` });
3030
const js_modules = glob('**/*.js', { cwd: `${cwd}/input` });
3131

32-
/** @type {Array<'client'|'server'>} */
33-
const compile_types = ['client', 'server'];
34-
for (const generate of compile_types) {
32+
for (const generate of /** @type {const} */ (['client', 'server'])) {
3533
console.error(`\n--- generating ${generate} ---\n`);
3634
for (const file of svelte_modules) {
3735
const input = `${cwd}/input/${file}`;

0 commit comments

Comments
 (0)