Skip to content

Commit

Permalink
fix: source map for other loaders (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Aug 12, 2022
1 parent b90be51 commit 5a1f866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function loader(content, sourceMap) {
callback(
null,
`${importsCode}\n${content}\n${codeAfterModule}`,
generator.toString()
generator.toJSON()
);

return;
Expand Down

0 comments on commit 5a1f866

Please sign in to comment.