Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): allow default Webpack 5 caching
Browse files Browse the repository at this point in the history
With upstream fixes in place, the default Webpack 5 caching behavior can now be enabled.  In development mode, memory caching will now be used, and in production, caching will be disabled as per Webpack 5 default behavior.
  • Loading branch information
clydin authored and alan-agius4 committed Nov 26, 2020
1 parent def6029 commit f8b9fec
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -584,8 +584,6 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
...withWebpackFourOrFive({}, buildOptions.namedChunks ? { chunkIds: 'named' } : {}),
...withWebpackFourOrFive({ noEmitOnErrors: true }, { emitOnErrors: false }),
},
// TODO_WEBPACK_5: Investigate non-working cache in development builds
...withWebpackFourOrFive({}, { cache: false }),
plugins: [
// Always replace the context for the System.import in angular/core to prevent warnings.
// https://github.com/angular/angular/issues/11580
Expand Down

0 comments on commit f8b9fec

Please sign in to comment.