diff --git a/scripts/build.js b/scripts/build.js index a77329765f..e8e52d267c 100755 --- a/scripts/build.js +++ b/scripts/build.js @@ -61,7 +61,7 @@ async function runBuild(entry, outfile) { entryPoints: [entry], bundle: true, minify: !isDev, - sourcemap: isDev, + sourcemap: tsconfigPathPluginContent.compilerOptions.sourceMap, tsconfig, plugins: [ svelteCompilePlugin,