Angular-cli: Webpack 5 support

Created on 27 Apr 2020  路  11Comments  路  Source: angular/angular-cli

Support Webpack 5

Command (mark with an x)

  • [ ] new
  • [ ] build
  • [ ] serve
  • [ ] test
  • [ ] e2e
  • [ ] generate
  • [ ] add
  • [ ] update
  • [ ] lint
  • [ ] xi18n
  • [ ] run
  • [ ] config
  • [ ] help
  • [ ] version
  • [ ] doc

Description

There is a WIP PR #16371 to implement Webpack 5 but I could not find an issue tracking it and I'm opening this one so that implementation and timeline can be discussed and followed by the community.

Describe the solution you'd like

Support Webpack 5 once released. (currently it's in beta)

Describe alternatives you've considered

no alternative considered

devkibuild-angular devkibuild-webpack ngtoolwebpack feature

Most helpful comment

Experimental opt-in support for Webpack version 5 have been added in v11.0.0-next.3.

See https://github.com/angular/angular-cli/pull/18820 for more information.

All 11 comments

@alan-agius4 out of curiosity, do you guys have a timeline to try out the beta? I suppose it would be good to validate that webpack 5 is in a good shape for Angular CLI while it's still in beta

Will this issue also include the module federation as discussed in https://github.com/sokra/slides/blob/master/content/ModuleFederationWebpack5.md?
If this is the case, then I'm very exited! The work that's been put into this will in my opinion revolutionize how we build frontend applications.

As support to Webpack 5 and support to Module Federation are two different streams that will probably not be implemented in the same PR we are tracking Module Federation support on issue #17556

@alan-agius4 is there a fork somewhere where a development is done? may be community can contribute.

Unfortunately, Webpack 5 has a lot of breaking changes and therefore adding support for it is not trivial feat.

@clydin is working on this and has already landed a number of small PRs to make this happen gradually.

Can you use the current master branch if you are interested in contributing in any way.

Experimental opt-in support for Webpack version 5 have been added in v11.0.0-next.3.

See https://github.com/angular/angular-cli/pull/18820 for more information.

Webpack 5 is needed for Angular-Cli to work on Mac and other Unix once again. as per : https://github.com/webpack/webpack-dev-server/issues/2754

Experimental opt-in support for Webpack version 5 have been added in v11.0.0-next.3.

See #18820 for more information.

when will it be available in a mainline npm version? pointing to github is sometimes entirely impossible behind corporate proxy. and in a corporate context pointing to non official versions as a whole is discouraged.

Version 11 prerelease versions are already on NPM, and you can update your application and try out the prerelease versions by running

ng update @angular/cli --next

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings