Skip to content
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

deno.land/x TS-to-JS transpilation via query parameter #10314

Closed
josephrocca opened this issue Apr 22, 2021 · 1 comment
Closed

deno.land/x TS-to-JS transpilation via query parameter #10314

josephrocca opened this issue Apr 22, 2021 · 1 comment

Comments

@josephrocca
Copy link
Contributor

josephrocca commented Apr 22, 2021

Background: I've been using deno.land/x as an immutable hosting service for modules that can be used both in the browser and in Deno. I think that's sort of what it's designed for - or at least what it will emergently become. That is, as opposed to a hosting service purely for Deno usage.

Problem: A decent portion of modules on deno.land/x are understandably .ts modules. This means that if I want to import them into the browser, I need to transpile them, and then upload them somewhere (probably deno.land/x). It would be really, really cool if there were a way to get the deno.land/x server to do that. Something like one of these, perhaps:

import mod from "https://deno.land/x/[email protected]/mod.ts?js";
import mod from "https://deno.land/x/[email protected]/mod.ts?to=js";
import mod from "https://deno.land/x/[email protected]/mod.ts?transpile=js";

The deno.land/x server would obviously save/cache the result such that this feature would add very little extra computation burden to the service.

Is a feature like this feasible?

@wperron
Copy link
Contributor

wperron commented Apr 22, 2021

Respectfully closing because this feature request is already tracked here and here

@wperron wperron closed this as completed Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants