Skip to content

Commit

Permalink
feat(@angular-devkit/build-angular): enable webpack Trusted Types sup…
Browse files Browse the repository at this point in the history
…port

As reported in #20113, webpack triggers a Trusted Types violation when
lazy-loading is used. To mitigate that, enable webpack's Trusted Types
module (introduced in webpack/webpack#9856) using 'angular#bundler' as
the policy name.
  • Loading branch information
bjarkler authored and clydin committed May 21, 2021
1 parent 16a8031 commit c146e9c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export function getBrowserConfig(wco: WebpackConfigOptions): webpack.Configurati
: 'web',
output: {
crossOriginLoading,
trustedTypes: 'angular#bundler',
},
optimization: {
runtimeChunk: 'single',
Expand Down

0 comments on commit c146e9c

Please sign in to comment.