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

Any plans for supporting Webpack/TypeScript #784

Open
ruochenjia opened this issue Feb 23, 2024 · 1 comment
Open

Any plans for supporting Webpack/TypeScript #784

ruochenjia opened this issue Feb 23, 2024 · 1 comment

Comments

@ruochenjia
Copy link

ruochenjia commented Feb 23, 2024

Currently the modules published on npm is not importable from a Webpack module, which can be very difficult to integrate with projects that uses webpack. Furthermore, the module also doesn't seem to have a TypeScript declaration (.d.ts) file, which makes it impossible to be imported to a TypeScript project without casting to any. (casting to any would require the user to check the documentations in JS for the corresponding API, and it is not checked while compiling, which loses the benefit of using TypeScript).

If this is supported, it would be much easier for other projects to use it as an external library.

@lnfel
Copy link

lnfel commented May 13, 2024

Hi just been looking for the same thing. apparently the author has yet to learn how to export modules. And they had just recently learned how to publish to npm as seen on #755. Enabling proper exports for library usage would take quite a time. I can look into making a PR but my fingers are crossed atm.

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