Skip to content

Commit

Permalink
fix ProfilingPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Mar 20, 2018
1 parent a534dfd commit d061aba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/SourceMapDevToolPlugin.js
Expand Up @@ -97,7 +97,7 @@ class SourceMapDevToolPlugin {
name: "SourceMapDevToolPlugin",
context: true
},
(context, chunks = context) => {
(context, chunks) => {
const moduleToSourceNameMapping = new Map();
const reportProgress =
context && context.reportProgress
Expand Down
4 changes: 2 additions & 2 deletions lib/debug/ProfilingPlugin.js
Expand Up @@ -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
};
}
Expand Down

0 comments on commit d061aba

Please sign in to comment.