-
I'm using a Say I have an entry point being loaded at runtime, like import { do_something } from 'internal-module'
do_something() and somewhere in the rust code I have a string containing export let do_something = () => {} how do I get boa to load internal-module from that string and not just try to read a file called internal-module? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi there! You should be able to use For a full example of loading, linking and evaluating a module, you can see the docs on |
Beta Was this translation helpful? Give feedback.
Don't know why, but that ain't working. Got it working by writing a custom
ModuleLoader
that takes in a function that maps paths to strings of js: