-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical - P2
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... webpack bundle user
I want... bundle code that uses native packages
So that... I can still run bundled code in Node.js
User Experience
- What is the desired/expected outcome for the user once this ticket is implemented?
- webpack doesn't fail to build the driver with native extensions
Dependencies
Risks/Unknowns
- What could go wrong while implementing this change? (e.g., performance, inadvertent behavioral changes in adjacent functionality, existing tech debt, etc)
- Is there an opportunity for better cross-driver alignment or testing in this area?
- No
- Is there an opportunity to improve existing documentation on this subject?
- Probably, but more likely it would be better captured by a test.
Acceptance Criteria
Implementation Requirements
- Make sure the use of require for the native build is inside a try-catch block.
- zstd, mongodb-client-encryption, kerberos
Testing Requirements
- Try bundling the native packages or the driver or both to try and catch errors (we have done this in BSON)
Documentation Requirements
- None
Follow Up Requirements
- We may defer adding testing in our projects as long as we unblock the internal projects that can verify webpack is fixed by the change for this ticket.
- is caused by
-
NODE-5357 Improve the import experience with libmongocrypt and kerberos
-
- Closed
-
- is depended on by
-
MONGOSH-1947 Bump node driver to mongodb-client-encryption-6.1.1
-
- Closed
-
There are no Sub-Tasks for this issue.