From 24d0213f9cfa832d585e8f9399c57090dddf88d3 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 14 Dec 2022 14:53:23 +0100 Subject: [PATCH] remove svelteOptions in sveltekit migration --- code/lib/cli/src/automigrate/fixes/sveltekit-framework.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/lib/cli/src/automigrate/fixes/sveltekit-framework.ts b/code/lib/cli/src/automigrate/fixes/sveltekit-framework.ts index 34087268c8d..b2201a0791b 100644 --- a/code/lib/cli/src/automigrate/fixes/sveltekit-framework.ts +++ b/code/lib/cli/src/automigrate/fixes/sveltekit-framework.ts @@ -171,6 +171,11 @@ export const sveltekitFramework: Fix = { } } + if (main.getFieldNode(['svelteOptions'])) { + logger.info(`✅ Removing svelteOptions field in main.js`); + main.removeField(['svelteOptions']); + } + if (!dryRun) { await writeConfig(main); }