You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(bundle-source,import-bundle): Thread importHook option to endoZipBase64 moduleFormat. (#2753)
## Description
This PR allows `bundleSource` and `importBundle` to bundle files and
import bundled files respectively in the case that
1. the source file depends on external dependencies (such as 'fs' and
'path') and
2. the bundle is created using the endoZipBase64 moduleFormat option
This functionality already existed in `@endo/compartment-mapper`, and
this PR simply plumbs the importHook option to the bundleSource and
importBundle APIs.
### Security Considerations
Any designs which depend upon code bundled with the endoZipBase64
moduleFormat to have no external dependencies will be broken. To my
knowledge none exist.
### Scaling Considerations
None
### Documentation Considerations
The bundleSource documentation does not have a use case showing the
importHook option.
### Testing Considerations
See included tests.
### Compatibility Considerations
None
### Upgrade Considerations
Bundling with endoZipBase64 is now more permissive, so existing
importBundle calls may fail in a way they couldn't before.
0 commit comments