Skip to content

Commit

Permalink
fix: add debug output to loader.js
Browse files Browse the repository at this point in the history
Was almost impossible to debug where the loader errors were coming from when upgrading storybook with mdx2, until I monkey patched it with this change.
  • Loading branch information
ndom91 authored Sep 7, 2022
1 parent d607151 commit 7ce92ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const loader = async function (content) {
try {
result = await compile(content, options);
} catch (err) {
console.error('Error loading:', this.resourcePath)
return callback(err);
}

Expand Down

0 comments on commit 7ce92ca

Please sign in to comment.