We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9500a commit 3c4d66dCopy full SHA for 3c4d66d
CHANGELOG.md
@@ -1,8 +1,9 @@
1
# svelte-loader changelog
2
3
-## Unreleased
+## 3.1.2 (Unreleased)
4
5
* Update to latest `svelte-hmr` package fixing Webpack 4 support
6
+* Fix sourcemap breakpoints ([#183](https://github.com/sveltejs/svelte-loader/pull/183))
7
8
## 3.1.1
9
index.js
@@ -50,7 +50,10 @@ module.exports = function(source, map) {
50
const compiled = compile(processed.toString(), compileOptions);
51
let { js, css, warnings } = compiled;
52
53
- if (!js.map.sourcesContent) js.map.sourcesContent = [ source ];
+ if (!js.map.sourcesContent) {
54
+ js.map.sourcesContent = [source];
55
+ js.map.sources = [compileOptions.filename];
56
+ }
57
58
warnings.forEach(
59
options.onwarn
0 commit comments