Giter Site home page Giter Site logo

Deno Support? about fluent.js HOT 3 CLOSED

KnorpelSenf avatar KnorpelSenf commented on June 16, 2024
Deno Support?

from fluent.js.

Comments (3)

eemeli avatar eemeli commented on June 16, 2024

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

from fluent.js.

KnorpelSenf avatar KnorpelSenf commented on June 16, 2024

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?

from fluent.js.

Seally avatar Seally commented on June 16, 2024

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.

from fluent.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.