Skip to content

cannot load from endoScript bundleCache #2451

@dckc

Description

@dckc

Describe the bug

A bundle cache created with { format: 'endoScript' } fails when .load(...) is called.

Steps to reproduce

  1. grab this gist with bundle1.test.js, a.js, and b.js
  2. yarn test test/bundle1.test.js
  3. 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...

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions