From 337658fe5f0e78ddc3dbdaedf8dd5ec645d4eba7 Mon Sep 17 00:00:00 2001 From: Mathieu Schimmerling Date: Fri, 25 Oct 2024 01:49:08 +0200 Subject: [PATCH] fix(playground): exclude svelte 5 examples that includes html files since it does not work --- build/lib/playground/createSvelte5Playground.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/lib/playground/createSvelte5Playground.js b/build/lib/playground/createSvelte5Playground.js index b0e1e957..cf12941d 100644 --- a/build/lib/playground/createSvelte5Playground.js +++ b/build/lib/playground/createSvelte5Playground.js @@ -4,7 +4,12 @@ export default function createSvelte5Playground() { const BASE_URL = "https://svelte.dev/playground?version=5#"; async function fromContentByFilename(contentByFilename) { - const files = Object.keys(contentByFilename).map((filename, index) => { + const filenames = Object.keys(contentByFilename); + if (filenames.some((f) => f.includes(".html"))) { + return; + } + + const files = filenames.map((filename, index) => { const contents = contentByFilename[filename]; const name = index === 0 ? "App.svelte" : path.parse(filename).base; return {