diff --git a/lib/SourceMapDevToolPlugin.js b/lib/SourceMapDevToolPlugin.js index 195d39976af..e5793866887 100644 --- a/lib/SourceMapDevToolPlugin.js +++ b/lib/SourceMapDevToolPlugin.js @@ -97,7 +97,7 @@ class SourceMapDevToolPlugin { name: "SourceMapDevToolPlugin", context: true }, - (context, chunks = context) => { + (context, chunks) => { const moduleToSourceNameMapping = new Map(); const reportProgress = context && context.reportProgress diff --git a/lib/debug/ProfilingPlugin.js b/lib/debug/ProfilingPlugin.js index ab82ca09011..ebeae560837 100644 --- a/lib/debug/ProfilingPlugin.js +++ b/lib/debug/ProfilingPlugin.js @@ -305,16 +305,16 @@ const interceptAllParserHooks = (moduleFactory, tracer) => { }; const makeInterceptorFor = (instance, tracer) => hookName => ({ - register: ({ name, type, fn }) => { + register: ({ name, type, context, fn }) => { const newFn = makeNewProfiledTapFn(hookName, tracer, { name, type, fn }); return { - // eslint-disable-line name, type, + context, fn: newFn }; }