File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11# svelte-loader changelog
22
3- ## Unreleased
3+ ## 3.1.2 ( Unreleased)
44
55* Update to latest ` svelte-hmr ` package fixing Webpack 4 support
6+ * Fix sourcemap breakpoints ([ #183 ] ( https://github.com/sveltejs/svelte-loader/pull/183 ) )
67
78## 3.1.1
89
Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ module.exports = function(source, map) {
5050 const compiled = compile ( processed . toString ( ) , compileOptions ) ;
5151 let { js, css, warnings } = compiled ;
5252
53- if ( ! js . map . sourcesContent ) js . map . sourcesContent = [ source ] ;
53+ if ( ! js . map . sourcesContent ) {
54+ js . map . sourcesContent = [ source ] ;
55+ js . map . sources = [ compileOptions . filename ] ;
56+ }
5457
5558 warnings . forEach (
5659 options . onwarn
You can’t perform that action at this time.
0 commit comments