Repository navigation
Experimental Webpack 5 Support - #18820
Merged
Merged
Conversation
… based on version 4/5 This change adds helpers to allow the Webpack configuration to be automatically adjusted based on the Webpack version in use. These helpers are then used to provide configuration compatibility for Webpack 5 which has several differences to the Webpack 4 configuration. Behavior is maintained between the two versions so that external option behavior is not altered.
…5 license extraction The license extraction plugin is currently causing errors when building/serving with Webpack 5. This change temporarily disables the option when Webpack 5 is used until further investigation can take place and to unblock initial Webpack 5 support.
The Webpack 5 filesystem watch function has a different return object type than Webpack 4. This change adjusts the behavior based on the used Webpack version.
alan-agius4
approved these changes
Sep 19, 2020
|
@clydin webpack relase v5.0.0-rc.0 now. |
1 of 2 tasks
|
Will the 2020-10-10 release of webpack 5 imply a new version of angular-cli so as to fix a year-long chain-dependency deprecation issue? Angular Cli is actually unbuildable on mac 10.15 (catalina) as it stands today. This, in my view, should make it into v10.1.5 and that be released on the day ( 2020-10-10 ) |
This was referenced Oct 15, 2020
14 tasks
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change enables experimental support for Webpack v5 in the Angular CLI. At this point, we don't recommend using Webpack v5 for production usage.
By default, the Angular CLI uses Webpack v4. To enable Webpack v5, use
yarnas your package manager and add the following top-level property topackage.json:Please note that the support is experimental, and webpack v5 is still in beta. Some Angular CLI features and options are partially supported, and new prereleases of webpack v5 may contain breaking changes. You may temporarily see Webpack deprecation warnings, which we'll fix over time.