From 3d81cf91a6f9376c95ccf7637e73270700f856bb Mon Sep 17 00:00:00 2001 From: orosmatthew Date: Mon, 16 Oct 2023 13:58:44 -0400 Subject: [PATCH] [extension] Fix warning about sourcemaps --- extension/bwcontest/rollup.config.js | 2 ++ extension/bwcontest/webviews/tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/bwcontest/rollup.config.js b/extension/bwcontest/rollup.config.js index 24180a5..bffa7c9 100644 --- a/extension/bwcontest/rollup.config.js +++ b/extension/bwcontest/rollup.config.js @@ -15,6 +15,7 @@ export default fs.readdirSync(path.join(__dirname, 'webviews', 'pages')).map((in return { input: 'webviews/pages/' + input, output: { + sourcemap: true, format: 'iife', name: 'app', file: 'out/compiled/' + name + '.js' @@ -35,6 +36,7 @@ export default fs.readdirSync(path.join(__dirname, 'webviews', 'pages')).map((in }), commonjs(), typescript({ + sourceMap: true, tsconfig: 'webviews/tsconfig.json', inlineSources: !production }), diff --git a/extension/bwcontest/webviews/tsconfig.json b/extension/bwcontest/webviews/tsconfig.json index d27d312..9038b0c 100644 --- a/extension/bwcontest/webviews/tsconfig.json +++ b/extension/bwcontest/webviews/tsconfig.json @@ -2,5 +2,5 @@ "extends": "@tsconfig/svelte/tsconfig.json", "include": ["./**/*"], "exclude": ["../node_modules/*"], - "compilerOptions": { "strict": true } + "compilerOptions": { "strict": true, "sourceMap": true } }