Why does the configuration schema change so often? #15186
phoenixeliot-practicum
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
We are reducing number of these changes, most of them are soft deprecations (i.e. you get a warning in console but all will work fine), unfortunately some of them are hard deprecations (i.e. code was removed), it is very hard to support old approaches/logic/options with new stuff. Could you specify what options specifically you are talking about? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a bit of a philosophical question I've had for a while with webpack. Why does the schema for the configuration file change so often between versions? The way I see this most is that old advice on StackOverflow is usually wrong, because some property will have changed name since it was posted, or the many different ways of specifying a single property have changed in backwards-incompatible ways (eg the many ways of specifying
use
,loader
,loaders
, etc).This causes problems, especially for new users / ones not deeply familiar with webpack, in that most old examples about how to configure webpack don't work anymore — if you find two answers on StackOverflow that should combine to serve your needs, usually this won't work because they are answering for different versions of webpack, and probably both are out of date with the current version, and migrating them to the current syntax is very nonobvious (and some old default plugins may not even work anymore or be superseded by some new plugin).
This is the primary reason I find webpack so hard to work with when setting up something complex.
On the pragmatic end of this question: How can we mitigate this problem? Are there feasible ways to detect this kind of problem and report it in a way that users not very familiar with webpack can use to migrate parts of their configuration correctly?
Beta Was this translation helpful? Give feedback.
All reactions