Skip to content

Commit

Permalink
feat: enable top-level-await feature in webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
starpit committed Apr 12, 2023
1 parent cb12724 commit 3f894f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/webpack/headless-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion packages/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f894f2

Please sign in to comment.