Skip to content

Commit

Permalink
added topLevelAwait to webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed May 29, 2024
1 parent 096a926 commit 6bc5588
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Modified work Copyright 2020, Trussworks, Inc.

const path = require('path')
const { experiments } = require('webpack')

const BUILD_DIR = path.resolve(__dirname, './dist')
const APP_DIR = path.resolve(__dirname, './src')
Expand Down Expand Up @@ -84,6 +85,9 @@ const config = {
},
],
},
experiments: {
topLevelAwait: true,
},
}

module.exports = config

0 comments on commit 6bc5588

Please sign in to comment.