Describe the bug
A bundle cache created with { format: 'endoScript' } fails when .load(...) is called.
Steps to reproduce
- grab this gist with bundle1.test.js, a.js, and b.js
yarn test test/bundle1.test.js
- lose:
TypeError { message: 'Compartment must be constructed with an importHook and a resolveHook for it to be able to load modules' }
Expected behavior
makeNodeBundleCache supports endoScript.
Platform environment
yarn why @endo/bundle-source says @endo/bundle-source@npm:3.4.0
Additional context
Trying to use endoScript instead of rollup...
Describe the bug
A bundle cache created with
{ format: 'endoScript' }fails when.load(...)is called.Steps to reproduce
yarn test test/bundle1.test.jsTypeError { message: 'Compartment must be constructed with an importHook and a resolveHook for it to be able to load modules' }Expected behavior
makeNodeBundleCachesupportsendoScript.Platform environment
yarn why @endo/bundle-sourcesays@endo/bundle-source@npm:3.4.0Additional context
Trying to use endoScript instead of rollup...