Skip to content

Commit 2fd981a

Browse files
alan-agius4clydin
authored andcommitted
refactor: disable Webpack topLevelAwait
Webpack enabled top level await by default in version 5.83.0. (See: https://github.com/webpack/webpack/releases/tag/v5.83.0) This commit restores the previous behaviour, as top level await is not supported due to Zone.js issues. (cherry picked from commit 6a4ce53)
1 parent 1d83bb6 commit 2fd981a

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
436436
backCompat: false,
437437
syncWebAssembly: true,
438438
asyncWebAssembly: true,
439+
topLevelAwait: false,
439440
},
440441
infrastructureLogging: {
441442
debug: verbose,

0 commit comments

Comments
 (0)