[extension] Fix warning about sourcemaps
This commit is contained in:
parent
697dfb968d
commit
3d81cf91a6
@ -15,6 +15,7 @@ export default fs.readdirSync(path.join(__dirname, 'webviews', 'pages')).map((in
|
|||||||
return {
|
return {
|
||||||
input: 'webviews/pages/' + input,
|
input: 'webviews/pages/' + input,
|
||||||
output: {
|
output: {
|
||||||
|
sourcemap: true,
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
name: 'app',
|
name: 'app',
|
||||||
file: 'out/compiled/' + name + '.js'
|
file: 'out/compiled/' + name + '.js'
|
||||||
@ -35,6 +36,7 @@ export default fs.readdirSync(path.join(__dirname, 'webviews', 'pages')).map((in
|
|||||||
}),
|
}),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
typescript({
|
typescript({
|
||||||
|
sourceMap: true,
|
||||||
tsconfig: 'webviews/tsconfig.json',
|
tsconfig: 'webviews/tsconfig.json',
|
||||||
inlineSources: !production
|
inlineSources: !production
|
||||||
}),
|
}),
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
"extends": "@tsconfig/svelte/tsconfig.json",
|
"extends": "@tsconfig/svelte/tsconfig.json",
|
||||||
"include": ["./**/*"],
|
"include": ["./**/*"],
|
||||||
"exclude": ["../node_modules/*"],
|
"exclude": ["../node_modules/*"],
|
||||||
"compilerOptions": { "strict": true }
|
"compilerOptions": { "strict": true, "sourceMap": true }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user