Skip to content

Commit

Permalink
build: 开启top-level-await
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Dec 3, 2022
1 parent 53746ee commit 84f3a6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/basic.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export const basicConfig = {
devtool: 'eval-source-map',
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json']
},
experiments: {
topLevelAwait: true
}
};

Expand Down

0 comments on commit 84f3a6d

Please sign in to comment.