Skip to content

Commit 5a1f866

Browse files
fix: source map for other loaders (#146)
1 parent b90be51 commit 5a1f866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function loader(content, sourceMap) {
103103
callback(
104104
null,
105105
`${importsCode}\n${content}\n${codeAfterModule}`,
106-
generator.toString()
106+
generator.toJSON()
107107
);
108108

109109
return;

0 commit comments

Comments
 (0)