diff --git a/code/builders/builder-manager/src/index.ts b/code/builders/builder-manager/src/index.ts index 40e180ada28c..c13f0daa87f1 100644 --- a/code/builders/builder-manager/src/index.ts +++ b/code/builders/builder-manager/src/index.ts @@ -72,7 +72,7 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => { platform: 'browser', bundle: true, minify: true, - sourcemap: true, + sourcemap: false, conditions: ['browser', 'module', 'default'], jsxFactory: 'React.createElement', diff --git a/scripts/prepare/bundle.ts b/scripts/prepare/bundle.ts index ac04fee5af2d..a15f71cd6a34 100755 --- a/scripts/prepare/bundle.ts +++ b/scripts/prepare/bundle.ts @@ -88,6 +88,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { shims: false, watch, outDir, + sourcemap: false, format: ['esm'], target: ['chrome100', 'safari15', 'firefox91'], clean: false, @@ -119,6 +120,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { entry: allEntries, watch, outDir, + sourcemap: false, format: ['cjs'], target: 'node16', ...(dtsBuild === 'cjs' ? dtsConfig : {}), diff --git a/scripts/prepare/esm-bundle.ts b/scripts/prepare/esm-bundle.ts index 08e039ad6dd2..e75ddc75b679 100755 --- a/scripts/prepare/esm-bundle.ts +++ b/scripts/prepare/esm-bundle.ts @@ -75,6 +75,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { entry: allEntries, watch, outDir, + sourcemap: false, format: ['esm'], outExtension: () => ({ js: '.js', @@ -116,6 +117,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { entry: allEntries, watch, outDir, + sourcemap: false, format: ['cjs'], outExtension: () => ({ js: '.js', diff --git a/scripts/prepare/tsc.ts b/scripts/prepare/tsc.ts index 242781a3584d..cc248979ef70 100755 --- a/scripts/prepare/tsc.ts +++ b/scripts/prepare/tsc.ts @@ -41,6 +41,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { outDir: join(process.cwd(), 'dist'), target: ts.ScriptTarget.ES2020, declaration: true, + sourceMap: false, } );