From: Jérôme Benoit Date: Fri, 22 Sep 2023 11:09:53 +0000 (+0200) Subject: build: enable source map for all build types X-Git-Tag: v2.7.2~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=890ed48b416b065663ab8523a4d2a69b3f9042e1;p=poolifier.git build: enable source map for all build types watch for any performance regression. reference #1279 Signed-off-by: Jérôme Benoit --- 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",