Skip to content

Commit 3c26aea

Browse files
authored
Merge pull request #792 from linxiaowu66/master
fix(loader): new Error to webpack when errors occured in the loader f…
2 parents fb7eb9d + fa10935 commit 3c26aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function loader(this: Webpack, contents: string) {
2929
const instanceOrError = getTypeScriptInstance(options, this);
3030

3131
if (instanceOrError.error !== undefined) {
32-
callback(instanceOrError.error);
32+
callback(new Error(instanceOrError.error.message));
3333
return;
3434
}
3535

0 commit comments

Comments
 (0)