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 } }