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 Support? #582

Closed
KnorpelSenf opened this issue Jan 23, 2022 · 3 comments
Closed

Deno Support? #582

KnorpelSenf opened this issue Jan 23, 2022 · 3 comments

Comments

@KnorpelSenf
Copy link

Are there any plans to support Deno and to publish on https://deno.land/x?

@eemeli
Copy link
Member

eemeli commented Jan 26, 2022

No such current plans exist. The source files include .js extensions when importing TypeScript files; is that still unsupported in Deno?

@KnorpelSenf
Copy link
Author

Not sure I understand, does this project contain TS in .js files? Or do you explicitly import from a non-existing .js file but actually mean to import from the corresponding .ts file?

@Seally
Copy link

Seally commented Dec 14, 2022

Deno's imports are URL-based so it can fetch any file as long as the path exists or the path can be resolved using the import map. I believe it uses the file extension for language detection on local filesystems, so it will error if you import a .js file, but it's actually written in TypeScript. For online registries and CDNs the server is mainly responsible for handling module resolution, content type, and type acquisition.

For Fluent itself, @fluent/bundle is available through https://esm.sh/@fluent/bundle@<version> (I haven't checked if all the other packages are on it yet). Deno's npm import feature should also work fine, although it wouldn't be my first choice.

In any case, I think this issue can probably be closed since the CDN import seems to be working fine.

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

3 participants