diff --git a/packages/webpack/headless-webpack.config.js b/packages/webpack/headless-webpack.config.js index bec75b2a8a..eae69098fb 100644 --- a/packages/webpack/headless-webpack.config.js +++ b/packages/webpack/headless-webpack.config.js @@ -198,6 +198,9 @@ const config = ( resolve: { extensions: ['.tsx', '.ts', '.js'] }, + experiments: { + topLevelAwait: true + }, watchOptions: { // here we ignore changes to any node_modules, except we want to // trigger a webpack rebuild when either of these diff --git a/packages/webpack/webpack.config.js b/packages/webpack/webpack.config.js index 9ada7c81fc..2d6f29330e 100644 --- a/packages/webpack/webpack.config.js +++ b/packages/webpack/webpack.config.js @@ -471,7 +471,10 @@ module.exports = { alias: { 'snippet-inliner': require.resolve('@kui-shell/plugin-client-common/dist/controller/snippets-inliner.js') } - }, */ + }, */ + experiments: { + topLevelAwait: true + }, watchOptions: { // here we ignore changes to any node_modules, except we want to // trigger a webpack rebuild when either of these