Skip to content

Commit 590f622

Browse files
committed
Updates webpack use docs & example config
1 parent 38c1eb0 commit 590f622

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/bundling/webpack/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Webpack BSON setup example
22

3-
In order to use BSON with webpack there are two changes beyond the default config file needed:
4-
- Set `experiments: { topLevelAwait: true }` in the top-level config object
3+
In order to use BSON with webpack there is one change beyond the default config file needed:
54
- Set `resolve: { fallback: { crypto: false } }` in the top-level config object
65

76
## Testing

test/bundling/webpack/webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const config = {
1414
// Add your plugins here
1515
// Learn more about plugins from https://webpack.js.org/configuration/plugins/
1616
],
17-
experiments: { topLevelAwait: true },
1817
module: {
1918
rules: [
2019
{

0 commit comments

Comments
 (0)