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

Unable to use ESM modules on Electron #57

Closed
seahindeniz opened this issue Jun 28, 2023 · 4 comments
Closed

Unable to use ESM modules on Electron #57

seahindeniz opened this issue Jun 28, 2023 · 4 comments

Comments

@seahindeniz
Copy link

seahindeniz commented Jun 28, 2023

Hello, Electron doesn't support ESM modules yet and the issue is still open electron/electron#21457.
Do you plan using a bundler (Vite, etc.) to build and release multiple types?

If you accept PR, I could give a hand 🤚

@sindresorhus
Copy link
Owner

It's up to you to use a bundler yourself if you need this for Electron.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
@seahindeniz
Copy link
Author

No, I meant using a bundler for this library. Even using a bundler on a project, doesn't solve the problem with ESM module

@Stoyvo
Copy link

Stoyvo commented Oct 17, 2023

This issue should be open. It's a very valid issue that is specific to the project. Other imports are fine, it's often up to the package to support various targets.

@seahindeniz how did you get around this?

@seahindeniz
Copy link
Author

seahindeniz commented Oct 29, 2023

I couldn't find a solution to this lib however, I just found out this one https://github.com/heyikang/ps-list. Maybe it could help

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

3 participants