Skip to content

Commit

Permalink
fix(): forward worker error to main land
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Aug 21, 2020
1 parent a865249 commit 1048c68
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/compiler/bundle/worker-plugin.ts
Expand Up @@ -249,10 +249,7 @@ addEventListener('message', async ({data}) => {
} catch (e) {
value = null;
${isDev ? 'console.error(e);' : ''}
err = {
message: typeof e === 'string' ? e : e.message,
stack: e.stack
};
err = e;
value = undefined;
}
Expand Down

0 comments on commit 1048c68

Please sign in to comment.