Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit e6e47d6

Browse files
authored
pass option sourceMap to sveltePreprocess (#216)
1 parent 47ed448 commit e6e47d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setupTypeScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rollupConfig = rollupConfig.replace(`'src/main.js'`, `'src/main.ts'`)
6565
// Add preprocessor
6666
rollupConfig = rollupConfig.replace(
6767
'compilerOptions:',
68-
'preprocess: sveltePreprocess(),\n\t\t\tcompilerOptions:'
68+
'preprocess: sveltePreprocess({ sourceMap: !production }),\n\t\t\tcompilerOptions:'
6969
);
7070

7171
// Add TypeScript

0 commit comments

Comments
 (0)