Skip to content

Commit d061aba

Browse files
committed
fix ProfilingPlugin
1 parent a534dfd commit d061aba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/SourceMapDevToolPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class SourceMapDevToolPlugin {
9797
name: "SourceMapDevToolPlugin",
9898
context: true
9999
},
100-
(context, chunks = context) => {
100+
(context, chunks) => {
101101
const moduleToSourceNameMapping = new Map();
102102
const reportProgress =
103103
context && context.reportProgress

lib/debug/ProfilingPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,16 @@ const interceptAllParserHooks = (moduleFactory, tracer) => {
305305
};
306306

307307
const makeInterceptorFor = (instance, tracer) => hookName => ({
308-
register: ({ name, type, fn }) => {
308+
register: ({ name, type, context, fn }) => {
309309
const newFn = makeNewProfiledTapFn(hookName, tracer, {
310310
name,
311311
type,
312312
fn
313313
});
314314
return {
315-
// eslint-disable-line
316315
name,
317316
type,
317+
context,
318318
fn: newFn
319319
};
320320
}

0 commit comments

Comments
 (0)