Skip to content

Are there any plans for @ngtools/webpack to support Webpack 5?  #19351

@JonWallsten

Description

@JonWallsten

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

I tried to use @ng-tools/webpack with Webpack 5 but it doesn't seem to work.
According to Webpack-team the fault might be loader. I can't explain in detail whats wrong since I don't have a deep understanding of the loader nor Webpack. But there seem to be some issue with how caching is implemented.
image

Please see this issue for more info: webpack/webpack-cli#1985

I tried to create create a minimal reproduction but it only happens with our full monorepo setup. When using the repro I don't end up in the ResolverCachePlugin with the Angular files at all, and I don't know how to force it either.

Maybe someone in the team can share some light on what's happening?

Describe the solution you'd like

Sorry. I'm no help here.

Describe alternatives you've considered

The alternative is to stay with Webpack 4.x.x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions