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

NodeJS is missing DOM api. #83

Open
lamba92 opened this issue Feb 4, 2022 · 5 comments
Open

NodeJS is missing DOM api. #83

lamba92 opened this issue Feb 4, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@lamba92
Copy link

lamba92 commented Feb 4, 2022

When running into NodeJS the dom API are not available. I would recommend a fallback to https://github.com/jsdom/jsdom with a separate artifact for nodejs.

@pdvrieze pdvrieze added the enhancement New feature or request label Feb 6, 2022
@pdvrieze
Copy link
Owner

pdvrieze commented Feb 6, 2022

I'm not particularly interested in nodejs (if you are using Kotlin it makes little sense to use it). The main blocker though would be that (beyond the JS ecosystem being a bit bonkers) kotlin multiplatform doesn't really support multiplatform well. If I do something I'd probably do some runtime detection magic that would allow using jsdom at runtime, but work "automagically".

@lamba92
Copy link
Author

lamba92 commented Feb 7, 2022

My usecase would be AWS Lambdas to cope with the cold start issue, but I understand your point. Indeed I would prefer 2 really separated target for JS which is one NodeJS and another the browser in the K/MP model to solve those evil issues.

@pdvrieze
Copy link
Owner

pdvrieze commented Feb 8, 2022

@lamba92 You may be able to try native for lambda's (they are best on cold start).

@lppedd
Copy link

lppedd commented Jul 3, 2023

I wonder what you've ended up using for Node @lamba92.
This library would suite me perfectly but the missing piece is really Node.js.

@lppedd
Copy link

lppedd commented Jul 3, 2023

For context @pdvrieze, I'm developing a multiplatform library that will be consumed by Eclipse plugins, VS Code plugins, and native CLIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants