Skip to content
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

Use webpack hooks #357

Merged
merged 1 commit into from
Mar 16, 2018
Merged

Use webpack hooks #357

merged 1 commit into from
Mar 16, 2018

Conversation

ooflorent
Copy link
Contributor

@ooflorent ooflorent commented Mar 14, 2018

In webpack 4, Tapable#apply and Tapable#plugin raise a deprecation notice.

  • Tapable#apply(plugin) must be replaced by a call to plugin.apply
  • Tapable#plugin(hook, fn) must be replaced by a call to hook.tap (or hook.tapAsync)

Note: This is breaking change because it drops webpack < 4 compatibility.

@NekR
Copy link
Owner

NekR commented Mar 14, 2018

Note: This is breaking change because it drops webpack < 4 compatibility.

Unfortunately this isn't an option. It should support versions 2-4. That's what v5 will be supporting.

@ooflorent
Copy link
Contributor Author

No problem. I’ll update the PR to support both APIs.

@NekR
Copy link
Owner

NekR commented Mar 14, 2018

Okay, sounds good, thanks!

In webpack 4, `Tapable#apply` and `Tapable#plugin` raise a **deprecation notice**.

- `Tapable#apply(plugin)` must be replaced by a call to `plugin.apply`
- `Tapable#plugin(hook, fn)` must be replaced by a call to `hook.tap` (or `hook.tapAsync`)

**Note:** This is breaking change because it drops webpack < 4 compatibility.
@ooflorent
Copy link
Contributor Author

I don't understand the CI failure. Tests are fine when ran locally.

@NekR
Copy link
Owner

NekR commented Mar 16, 2018

I don't understand the CI failure. Tests are fine when ran locally.

It's travis issue, it's just too slow to handle browser tests and they fail with timeout.

@NekR
Copy link
Owner

NekR commented Mar 16, 2018

Anyway, I guess if tests pass, then everything works 🙃 Merging. Thank you for the PR and follow up updates regarding previous versions support! 👏🎉

@NekR NekR merged commit 5448d0b into NekR:master Mar 16, 2018
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.

None yet

2 participants