[extension] Fix warning about sourcemaps

This commit is contained in:
orosmatthew 2023-10-16 13:58:44 -04:00
parent 697dfb968d
commit 3d81cf91a6
2 changed files with 3 additions and 1 deletions

View File

@ -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
}),

View File

@ -2,5 +2,5 @@
"extends": "@tsconfig/svelte/tsconfig.json",
"include": ["./**/*"],
"exclude": ["../node_modules/*"],
"compilerOptions": { "strict": true }
"compilerOptions": { "strict": true, "sourceMap": true }
}