-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force rebuild after npm install #349
Conversation
var nodeModulesPath = this.nodeModulesPath; | ||
|
||
// If any missing files are expected to appear in node_modules... | ||
if (missingDeps.some(file => file.indexOf(nodeModulesPath) !== -1)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the minimum node version we support have arrow functions support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
compilation.contextDependencies.push(nodeModulesPath); | ||
} | ||
|
||
callback(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Express middleware calls this next
, which I think is more explicit than callback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most webpack plugins I saw use callback
here but I don’t care either way, feel free to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying to give more context, I don't particularly care :)
Fixes #186