File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- # Webpack BSON setup example
1
+ # Webpack mongodb-client-encryption setup example
2
2
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:
4
4
- Set ` experiments: { topLevelAwait: true } ` in the top-level config object
5
5
- 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.
6
7
7
8
## Testing
8
9
9
10
To use this bundler test:
10
11
- 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
13
14
- We use a ` .tgz ` install to make sure we're using exactly what will be published to npm
14
15
- run ` npm run build ` to check that webpack can pull in the changes
You can’t perform that action at this time.
0 commit comments