From e3016867b5bf506ed4d848387d5906d645c55283 Mon Sep 17 00:00:00 2001 From: Si Le Date: Thu, 19 Sep 2024 16:36:30 -0400 Subject: [PATCH] generate sourcemap inline with content --- config/rollup/rollup-utils.js | 4 ++-- tsconfig.build.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/rollup/rollup-utils.js b/config/rollup/rollup-utils.js index 9ecdc41fa..16c3ecc7f 100644 --- a/config/rollup/rollup-utils.js +++ b/config/rollup/rollup-utils.js @@ -44,7 +44,7 @@ export function getPlugins({ export const esmConfigs = { dir: './dist/esm', format: 'es', - sourcemap: true, + sourcemap: "inline", preserveModules: true, preserveModulesRoot: 'src', entryFileNames: '[name].mjs', @@ -54,7 +54,7 @@ export const esmConfigs = { export const cjsConfigs = { dir: './dist/cjs', format: 'cjs', - sourcemap: true, + sourcemap: "inline", preserveModules: true, preserveModulesRoot: 'src', exports: 'named', diff --git a/tsconfig.build.json b/tsconfig.build.json index 1df83bf9e..232ccbc5e 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.base.json", "compilerOptions": { "declaration": true, - "emitDeclarationOnly": true + "emitDeclarationOnly": true, + "inlineSources": true } }