-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Describe the issue
I would like a way to override the result of a module import in Truffle languages that support it, like JavaScript or Python. It is already possible to provide a custom filesystem and "override" Node modules, for example, but there is no generalized way to implement synthesized modules across languages.
Code snippet or code repository that reproduces the issue
- I have a
ProxyObject - I want to make it available "as a module" in a Truffle language, so the user can
import { someKey } from "some-import-intercepted-for-the-proxy-object";Related context: ESM imports in JavaScript already return an object.