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

Vite integration? #289

Open
baseplate-admin opened this issue Sep 23, 2024 · 2 comments
Open

Vite integration? #289

baseplate-admin opened this issue Sep 23, 2024 · 2 comments

Comments

@baseplate-admin
Copy link

Hi, i was wondering if it was possible to use karax with something like vite

@geotre
Copy link
Collaborator

geotre commented Sep 26, 2024

It is possible:

  1. Simple option is to have your nim compiler output to somewhere that vite is watching, to have it bundle up your js
  2. Write a vite plugin to call the nim compiler

There is not much benefit, as nim will always output a single javascript file, not separate modules. You could output separate files, but it will result in duplication of dependencies.

What is your use case?

@baseplate-admin
Copy link
Author

hi, thanks for quick response.

What is your use case?

  1. I want to use npm modules with nim karax.
  2. I want to possibly build a sveltekit like application with nim karax.

Frankly i am new to this nim and karax ecosystem. So i am actually exploring

Thank you

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