mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-15 10:11:50 +08:00
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.
This commit is contained in:
parent
11e0a51b17
commit
6a4ce53857
@ -436,6 +436,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
|
||||
backCompat: false,
|
||||
syncWebAssembly: true,
|
||||
asyncWebAssembly: true,
|
||||
topLevelAwait: false,
|
||||
},
|
||||
infrastructureLogging: {
|
||||
debug: verbose,
|
||||
|
Loading…
x
Reference in New Issue
Block a user