diff --git a/scripts/tasks/sandbox-parts.ts b/scripts/tasks/sandbox-parts.ts index f0aaa39d825d..bb7670d44a7e 100644 --- a/scripts/tasks/sandbox-parts.ts +++ b/scripts/tasks/sandbox-parts.ts @@ -526,6 +526,8 @@ export const extendMain: Task['run'] = async ({ template, sandboxDir }, { disabl logger.log('📝 Extending main.js'); const mainConfig = await readMainConfig({ cwd: sandboxDir }); const templateConfig = template.modifications?.mainConfig || {}; + // TODO: UNDO THIS! DO NOT MERGE WITH THIS + const frameworkConfig = mainConfig.getFieldValue(['framework']); const configToAdd = { ...templateConfig, features: { @@ -536,6 +538,10 @@ export const extendMain: Task['run'] = async ({ template, sandboxDir }, { disabl // We don't want to show the "What's new" notifications in the sandbox as it can affect E2E tests disableWhatsNewNotifications: true, }, + framework: { + ...frameworkConfig, + options: undefined, + }, }; Object.entries(configToAdd).forEach(([field, value]) => mainConfig.setFieldValue([field], value));