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:
Alan Agius 2023-05-19 09:48:21 +00:00 committed by Charles
parent 11e0a51b17
commit 6a4ce53857

View File

@ -436,6 +436,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
backCompat: false, backCompat: false,
syncWebAssembly: true, syncWebAssembly: true,
asyncWebAssembly: true, asyncWebAssembly: true,
topLevelAwait: false,
}, },
infrastructureLogging: { infrastructureLogging: {
debug: verbose, debug: verbose,