From 43a3f04e2e073e94d96509469af1a5a31f59c6dd Mon Sep 17 00:00:00 2001 From: Hui Zhao <10602282+HuiSF@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:03:59 -0800 Subject: [PATCH] fix(repo): rollup generated sourcemap has wrong src path (#12947) --- rollup/common.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rollup/common.mjs b/rollup/common.mjs index 7049b5a7b32..cd7387bbb46 100644 --- a/rollup/common.mjs +++ b/rollup/common.mjs @@ -19,6 +19,7 @@ export const cjsTSOptions = { outDir: 'dist/cjs', declaration: false, // declarations are handled by the ESM build module: 'CommonJS', + sourceMap: false, tsconfig: defaultTSConfigPath, tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo', noEmitOnError: !isWatch, @@ -36,6 +37,7 @@ export const esmOutput = { export const esmTSOptions = { outDir: 'dist/esm', + sourceMap: false, tsconfig: defaultTSConfigPath, tsBuildInfoFile: 'dist/meta/cjs.tsbuildinfo', noEmitOnError: !isWatch,