diff --git a/packages/schema/src/config/build.ts b/packages/schema/src/config/build.ts index 0cd808958a..275586702f 100644 --- a/packages/schema/src/config/build.ts +++ b/packages/schema/src/config/build.ts @@ -150,7 +150,7 @@ export default defineUntypedSchema({ * @version 2 */ cssSourceMap: { - $resolve: async (val, get) => val ?? await get('sourcemap') ?? await get('dev') + $resolve: async (val, get) => val ?? (await get('sourcemap.client') || await get('sourcemap.server')) ?? await get('dev') }, /**