diff --git a/packages/schema/src/config/build.ts b/packages/schema/src/config/build.ts index 0cd808958a8..275586702f8 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') }, /**