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
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
910To 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
You can’t perform that action at this time.
0 commit comments