Skip to content

Commit 60a5e6d

Browse files
committed
chore: update readme
1 parent b149dd0 commit 60a5e6d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/bundling/webpack/readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# Webpack BSON setup example
1+
# Webpack mongodb-client-encryption setup example
22

3-
In order to use BSON with webpack there are two changes beyond the default config file needed:
3+
In order to use mongodb-client-encryption with webpack there are two changes beyond the default config file needed:
44
- Set `experiments: { topLevelAwait: true }` in the top-level config object
55
- Set `resolve: { fallback: { crypto: false } }` in the top-level config object
6+
- `npm install --save-dev node-loader` and use it to handle all .node files.
67

78
## Testing
89

910
To use this bundler test:
1011
- Make changes to bson
11-
- run `npm run build` in the root of the repo to rebuild the BSON src
12-
- in this directory run `npm run install:bson` to install BSON as if it were from npm
12+
- run `npm run build` in the root of the repo to rebuild the mongodb-client-encryption src
13+
- in this directory run `npm run install:ce` to install mongodb-client-encryption as if it were from npm
1314
- We use a `.tgz` install to make sure we're using exactly what will be published to npm
1415
- run `npm run build` to check that webpack can pull in the changes

0 commit comments

Comments
 (0)