From e5082079293eaf99069dc3a96367a65b76aa03f4 Mon Sep 17 00:00:00 2001 From: dominikg Date: Mon, 27 Nov 2023 14:30:26 +0100 Subject: [PATCH] chore: fix format --- playgrounds/demo/scripts/App.template.svelte | 3 ++- playgrounds/demo/scripts/create-app-svelte.js | 12 +++++------- playgrounds/demo/vite.config.js | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/playgrounds/demo/scripts/App.template.svelte b/playgrounds/demo/scripts/App.template.svelte index 52056f7795..e51190c18f 100644 --- a/playgrounds/demo/scripts/App.template.svelte +++ b/playgrounds/demo/scripts/App.template.svelte @@ -1,7 +1,8 @@ +

Demo App

diff --git a/playgrounds/demo/scripts/create-app-svelte.js b/playgrounds/demo/scripts/create-app-svelte.js index 44abecca81..478fa782ad 100644 --- a/playgrounds/demo/scripts/create-app-svelte.js +++ b/playgrounds/demo/scripts/create-app-svelte.js @@ -1,8 +1,6 @@ -import fs from "node:fs"; -const destination = new URL("../src/App.svelte", import.meta.url); -if(!fs.existsSync(destination)) { - const template = new URL("./App.template.svelte", import.meta.url); - fs.writeFileSync(destination,fs.readFileSync(template,'utf-8'),'utf-8'); +import fs from 'node:fs'; +const destination = new URL('../src/App.svelte', import.meta.url); +if (!fs.existsSync(destination)) { + const template = new URL('./App.template.svelte', import.meta.url); + fs.writeFileSync(destination, fs.readFileSync(template, 'utf-8'), 'utf-8'); } - - diff --git a/playgrounds/demo/vite.config.js b/playgrounds/demo/vite.config.js index b9f7f808c6..de42e9cfd4 100644 --- a/playgrounds/demo/vite.config.js +++ b/playgrounds/demo/vite.config.js @@ -3,7 +3,7 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'; export default defineConfig({ plugins: [svelte()], - optimizeDeps:{ + optimizeDeps: { // svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change exclude: ['svelte'] }