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 86ddc14 commit f0d7a58Copy full SHA for f0d7a58
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# svelte-loader changelog
2
3
+## 3.1.1 (Unreleased)
4
+
5
+* Fix empty sourcesContent ([#177](https://github.com/sveltejs/svelte-loader/pull/177))
6
7
## 3.1.0
8
9
* Pass preprocessor source maps to compiler ([#172](https://github.com/sveltejs/svelte-loader/pull/172))
index.js
@@ -50,6 +50,8 @@ 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 ];
54
55
warnings.forEach(
56
options.onwarn
57
? warning => options.onwarn(warning, handleWarning)
0 commit comments