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

TypeScript Support #4

Open
Offroaders123 opened this issue Sep 25, 2023 · 1 comment
Open

TypeScript Support #4

Offroaders123 opened this issue Sep 25, 2023 · 1 comment

Comments

@Offroaders123
Copy link

Wow, thank you for making this project! Seems like all of the other demos for Vite and Electron out there use some kind of other tool which abstracts away the steps to combine the tooling manually, and this one actually shows how to do it.

I was curious how to combine these configurations with TypeScript? I recently moved my own vanilla CommonJS Electron project over to TypeScript, and it's working really well! I also recently found out that Electron natively supports ESM out of the box now too, so I also implemented that to see how support for it feels so far (It's nice! the only holdup is that preload scripts still have to be in CommonJS).

The next stage to make it even better would be to add Vite, and optionally Svelte (similar to this project). I was going to try adding full TypeScript, or even allowJs / checkJs support to this project, but I wasn't quite sure how that would fit in with the current configurations for this project.

I'd be happy to help work on adding support too! I just wasn't sure where the best place to start was, after trying solo myself by cloning the repo.

@JoshuaHintze
Copy link

It would be great if this had typescript out of the box.

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