Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Commit

Permalink
Fix/unplugin (#527)
Browse files Browse the repository at this point in the history
* fix: remove the error code

* fix: judge if this is not undefined
  • Loading branch information
wssgcg1213 authored Sep 15, 2022
1 parent 6ffef33 commit 6c11977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/webpack-config/src/unPlugins/compilation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ const compilationPlugin = (options: Options): UnpluginOptions => {
let { map } = output;
return { code, map };
} catch (e) {
// catch error for Unhandled promise rejection
this.error(e);
// Catch error for unhandled promise rejection.
// In some cases, this referred to undefined.
if (this) this.error(e);
return { code: null, map: null };
}
},
Expand Down

1 comment on commit 6c11977

@vercel
Copy link

@vercel vercel bot commented on 6c11977 Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ice-v3 – ./

ice-v3-git-release-next-ice-v3.vercel.app
ice-v3-ice-v3.vercel.app
ice-v3.vercel.app

Please sign in to comment.