Skip to content

Commit

Permalink
build: top-level-wait
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Nov 24, 2022
1 parent 4bd0b0c commit d03a659
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

module.exports = function (api) {
const targets = '>1% or node >=10 and not ie 11 and not dead'
const targets = '>1% or node >=14 and not ie 11 and not dead'
api.cache(true)
api.cacheDirectory = true

Expand Down
4 changes: 4 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ const base = async (env?: Partial<WebpackEnvParams>): Promise<Configuration> =>
performance: {
hints: false,
},
experiments: {
// Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
topLevelAwait: true,
},
}
}

Expand Down

0 comments on commit d03a659

Please sign in to comment.