Skip to content

Conversation

@mattkrick
Copy link

upgrade to new tapable hooks API

Summary

deprecation warnings appear if using the old API

Does this PR introduce a breaking change?

yes,webpack v4 only

upgrade to new tapable hooks API
@jsf-clabot
Copy link

jsf-clabot commented Feb 26, 2018

CLA assistant check
All committers have signed the CLA.

@shellscape
Copy link
Contributor

@mattkrick thanks for the PR, but you'll need to restore the PR template and properly fill in the details before we can review this. also looks like you have a failure in Travis CI you'll have to fix to move forward.

@alexander-akait
Copy link
Member

@mattkrick friendly ping

@pi0
Copy link

pi0 commented Feb 27, 2018

Something to mention about watchRun hook. It no longer accepts Watching but Compiler!

Previously:

Watching {
  startTime: 1519735902177,

With webpack 4:

Compiler {
  _pluginCompat:

@shellscape
Copy link
Contributor

Fucking A - I absolutely loathe how little documentation there is for this release. Thanks for the heads up @pi0 🍺

context.rebuild = rebuild;
context.compiler.plugin('invalid', invalid);
context.compiler.plugin('run', invalid);
context.compiler.hooks.invalid.tap({name: 'CopyPlugin'}, invalid)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe all the names should be 'webpack-dev-middleware', not 'CopyPlugin'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed

@shellscape
Copy link
Contributor

Since the OP closed this, we'll be putting together a major release today for webpack@4 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants