8000 Add Deno Support · Issue #442 · javascriptdata/danfojs · GitHub
[go: up one dir, main page]

Skip to content
Add Deno Support #442
Closed
Closed
@dcrescim

Description

@dcrescim

Is your feature request related to a problem? Please describe.
Hey folks. I'm starting to do some ML with Deno, and I think it would be a good idea to build a ESM version of this library that is easily consumable from the Deno / browser. Basically I want to write import / export code that will work in either environment (Browser / Deno). I basically want to write the code below.

Deno

import * as dfd from 'https://cdn.skypack.dev/danfojs'
console.log(dfd)

Browser

<script type="module">
import * as dfd from 'https://cdn.skypack.dev/danfojs'
console.log(dfd)
</script>

Unfortunately skypack can't build danfojs right now (I haven't looked into why exactly), but I think we can easily update our build script to create a single ESM file and distribute it in the same way we distribute our ES5 bundle at

<script src="https://cdn.jsdelivr.net/npm/danfojs@1.1.0/lib/bundle.js"></script>

Solution

If you guys like the idea, I'd be happy to submit a PR that updates the build script to build a single ESM module that will allow for the code above.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0