Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

npm module can't be imported #16

@maikthomas

Description

@maikthomas

I see the lib is published on npm, but it's not importable as a module https://www.npmjs.com/package/sframe
The main field of package.json points to index.js which doesn't exist.
Also the worker will not be accessible this way.
I would propose to:

  • Add an index.js which exports the public api members
  • Bundle the lib with webpack
  • use webpack to inline the worker as a blob url so it doesn't have to be hosted separately
  • Either build locally and add build to repo, or add a build job in something like travis.

I'm happy to open a PR with these changes.

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