1 parent 957ee2a commit e68d83eCopy full SHA for e68d83e
1 file changed
lib/NormalModule.js
@@ -156,6 +156,7 @@ class NormalModule extends Module {
156
emitWarning: warning => {
157
if (!(warning instanceof Error)) {
158
warning = new NonErrorEmittedError(warning);
159
+ }
160
const currentLoader = this.getCurrentLoader(loaderContext);
161
this.warnings.push(
162
new ModuleWarning(this, warning, {
0 commit comments