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

Can we output libraries instead of websites ? #9

Open
ahna92 opened this issue Jul 30, 2024 · 3 comments
Open

Can we output libraries instead of websites ? #9

ahna92 opened this issue Jul 30, 2024 · 3 comments

Comments

@ahna92
Copy link

ahna92 commented Jul 30, 2024

Can kilua output a node js library for example, that can be integrated seamlessly with react website ?
so the library will be like basic components

Understand the complexity , just checking :D

Sorry not an issue, but there was no discussion tab

@rjaros
Copy link
Owner

rjaros commented Jul 31, 2024

Do you mean something like creating a web component?

@ahna92
Copy link
Author

ahna92 commented Jul 31, 2024

@rjaros yes

@rjaros
Copy link
Owner

rjaros commented Aug 19, 2024

Sorry for the long response time.
I haven't tried that yet, but in theory it should be possible. You can initialize a root container using a custom HTML element. The problem I see is the bundle size because every single component would probably need to use its own copy of Kotlin stdlib. I'm not sure if it is possible to share it between different components.

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