Skip to content

Usage with Skypack CDN? #339

Open
Open
@andersstorhaug

Description

@andersstorhaug

I am attempting to use a package via Skypack that depends on IxJS.

This package understandably depends on the main ix package, but that doesn't work with Skypack because as far as I can tell, IxJS's package.json doesn't have any ESM properties.

If I try to use the ix package directly via Skypack with import { from } from "https://cdn.skypack.dev/ix/iterable"; this also doesn't work, because an ESM isn't exported. However, using import { from } from "https://cdn.skypack.dev/@reactivex/ix-es5-esm"; does work.

Wondering how this could be resolved -- should the library instead depend on @reactivex/ix-es5-esm / @reactivex/ix-esnext-esm, or is it possible to make changes to IxJS's package.json so that Skypack works correctly with the main ix package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions