From 890ed48b416b065663ab8523a4d2a69b3f9042e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 22 Sep 2023 13:09:53 +0200 Subject: [PATCH] build: enable source map for all build types MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit watch for any performance regression. reference #1279 Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 6 +++--- tsconfig.development.json | 7 ------- tsconfig.production.json | 4 ---- typedoc.json | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 tsconfig.development.json delete mode 100644 tsconfig.production.json diff --git a/rollup.config.mjs b/rollup.config.mjs index 9e8cd65b..aac1c8cd 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -41,6 +41,7 @@ export default defineConfig([ }), ...(!isDevelopmentBuild && { file: './lib/index.js', + sourcemap: true, plugins: [terser({ maxWorkers })] }) }, @@ -56,6 +57,7 @@ export default defineConfig([ }), ...(!isDevelopmentBuild && { file: './lib/index.mjs', + sourcemap: true, plugins: [terser({ maxWorkers })] }) } @@ -72,9 +74,7 @@ export default defineConfig([ ], plugins: [ typescript({ - tsconfig: isDevelopmentBuild - ? './tsconfig.development.json' - : './tsconfig.production.json' + tsconfig: './tsconfig.build.json' }), del({ targets: ['./lib/*'] diff --git a/tsconfig.development.json b/tsconfig.development.json deleted file mode 100644 index 87915c1e..00000000 --- a/tsconfig.development.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "sourceMap": true - }, - "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"] -} diff --git a/tsconfig.production.json b/tsconfig.production.json deleted file mode 100644 index 5eca91e4..00000000 --- a/tsconfig.production.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "./tsconfig.json", - "exclude": ["node_modules", "lib", "examples/typescript/**/*.ts"] -} diff --git a/typedoc.json b/typedoc.json index 75f653d8..a09ea8ae 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,6 +1,6 @@ { "$schema": "https://typedoc.org/schema.json", - "tsconfig": "./tsconfig.production.json", + "tsconfig": "./tsconfig.build.json", "entryPoints": ["./src"], "out": "./docs", "readme": "none", -- 2.34.1