remove svelteOptions in sveltekit migration

This commit is contained in:
Jeppe Reinhold 2022-12-14 14:53:23 +01:00
parent 964a06cf9e
commit 24d0213f9c

View File

@ -171,6 +171,11 @@ export const sveltekitFramework: Fix<SvelteKitFrameworkRunOptions> = {
}
}
if (main.getFieldNode(['svelteOptions'])) {
logger.info(`✅ Removing svelteOptions field in main.js`);
main.removeField(['svelteOptions']);
}
if (!dryRun) {
await writeConfig(main);
}