From 3947a7b97ccae384492af05dc0dfe5f98bc91c29 Mon Sep 17 00:00:00 2001 From: bjoaquinc <75667013+bjoaquinc@users.noreply.github.com> Date: Mon, 9 Dec 2024 05:32:24 -0500 Subject: [PATCH] docs: added options and option definitions for sourcemap (#30201) --- packages/schema/src/config/build.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/schema/src/config/build.ts b/packages/schema/src/config/build.ts index fbacf2dd79..d884c89a0e 100644 --- a/packages/schema/src/config/build.ts +++ b/packages/schema/src/config/build.ts @@ -24,7 +24,16 @@ export default defineUntypedSchema({ }, /** - * Whether to generate sourcemaps. + * Configures whether and how sourcemaps are generated for server and/or client bundles. + * + * If set to a single boolean, that value applies to both server and client. + * Additionally, the `'hidden'` option is also available for both server and client. + * + * Available options for both client and server: + * - `true`: Generates sourcemaps and includes source references in the final bundle. + * - `false`: Does not generate any sourcemaps. + * - `'hidden'`: Generates sourcemaps but does not include references in the final bundle. + * * @type {boolean | { server?: boolean | 'hidden', client?: boolean | 'hidden' }} */ sourcemap: {