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); }