Skip to content

Commit

Permalink
fix(playground): exclude svelte 5 examples that includes html files s…
Browse files Browse the repository at this point in the history
…ince it does not work
  • Loading branch information
matschik committed Oct 24, 2024
1 parent ad904ff commit 337658f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/lib/playground/createSvelte5Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 337658f

Please sign in to comment.