-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a module, now what? #145
Comments
|
Does Or, how would one use I am looking for something such as: const specifier = "http://example.foo"
const graph = await denoGraph.createGraph(specifier, {
load: // custom graph loading, emits js...
})
const { foo } = Deno.load(graph) |
What I'm trying to do is to essentially import a file which is not typescript or javascript and transpile it on the fly. It seems like that ModuleLoader.load function could handle that but that I'm going to have to make a rust executable and essentially embed I'm wondering are there plans to make this load api available in typescript? Are you open to a PR for the above? It looks like, without really digging into it, that implementing the above |
I see, there were proposals for JavaScript APIs for loader in
Currently not, it's considered low priority at the moment.
I don't agree, this is going to be very hard to implement, but PRs are always welcome; maybe it will spark another conversation about custom loaders. |
Don't forget, there is a built in module loading functionality that loads code in its own context and is part of the web platform called web workers. |
Ok suppose I've got
parseModule
/createGraph
resolving modules correctly. How can I now execute the module?The text was updated successfully, but these errors were encountered: