-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix: remove webpack 4 deprecation warning #1148
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
Conversation
Codecov Report
|
sapegin
left a comment
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.
Cool! This is very nice! Couple of minor comments.
|
Hello @sapegin I finally found the time to run those webpack 3 tests. Even if the tests seem to pass, when testing manually I have a big old error in webpack-dev-server... the faulty line obviously being: I wonder if I could load multiple versions of the dev server and call them depending on the version of webpack. I will recreate this PR on the |
576dd3a to
314ae6f
Compare
|
I removed the update of webpack-dev-server and left the other fixes. Tested with webpack 3 & webpack 4. |
## Breaking changes ### Drop webpack 3 support Webpack 3 is no longer supported, webpack 4 is the minimum required version. As a side effect you shouldn’t see any webpack warnings when you run Styleguidist. We’ve also replaced no longer maintainer uglify-es with Terser to minify production JavaScript bundle. * #1175, #1178 by @derz * #1165 by @elevatebart * #1148 by @elevatebart * #915, #1023 by @stepancar * #1180 by @AndreyGladkov
|
I believe this was either merged manually of fixed by another pull request. Thanks for the contribution! |
After seeing the following warning a great enough number of times, I decided to tackle the issue.
(node:13435) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` insteadThree object were still using the webpack 3 way:
StyleguidistOptionsPlugin, but I guess you already worked on thatbin/styleguidist.jsthat was hooking directly onto webpack[email protected]that is incompatible with webpack 4.I therefore upgraded the latest and fixed both the other files. The warning is gone.
Enjoy