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

No index/module/main fields in package.json #29

Open
tenor-dev opened this issue Aug 19, 2022 · 1 comment
Open

No index/module/main fields in package.json #29

tenor-dev opened this issue Aug 19, 2022 · 1 comment

Comments

@tenor-dev
Copy link

Please define entry points, so that library can be used as:
import * as webeid from '@web-eid/web-eid-library

or even better would be:
import webeid from '@web-eid/web-eid-library

@taneltm
Copy link
Member

taneltm commented Nov 10, 2022

Thanks for pointing this out!

Instead of index/module/main, we should probably use the exports field which allows us to specify exports based on module type.

  "exports": {
    "import": "./web-eid.js",
    "require": "./dist/es/web-eid.js"
  },

I'm planning to create example Angular, React and/or Vue.js apps. In addition to having them as examples, they will be used to find and iron out these kinds of wrinkles.

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

2 participants