Skip to content

how can use main js by typescript? #1

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

Open
qq1053831109 opened this issue Jan 7, 2021 · 3 comments
Open

how can use main js by typescript? #1

qq1053831109 opened this issue Jan 7, 2021 · 3 comments

Comments

@qq1053831109
Copy link

how can use main js by typescript?

@robertcorponoi
Copy link
Owner

Sorry for the late response but the reason is because electron reloader is used to reload the app when changes happen and from the electron-reloader project's README:

Note that it will not work correctly if you transpile the main process JS files of your app, but it doesn't make sense to do that anyway.

If you still believe this would be useful I can see if other's feel the same and add it but some functionality will be lost doing so.

@ZQ-jhon
Copy link

ZQ-jhon commented Apr 12, 2021

Sorry for the late response but the reason is because electron reloader is used to reload the app when changes happen and from the electron-reloader project's README:

Note that it will not work correctly if you transpile the main process JS files of your app, but it doesn't make sense to do that anyway.

If you still believe this would be useful I can see if other's feel the same and add it but some functionality will be lost doing so.

Why not?
Webpack official site is support typescript: https://www.electronjs.org/blog/typescript#usage

@ZQ-jhon
Copy link

ZQ-jhon commented Apr 12, 2021

Sorry for the late response but the reason is because electron reloader is used to reload the app when changes happen and from the electron-reloader project's README:

Note that it will not work correctly if you transpile the main process JS files of your app, but it doesn't make sense to do that anyway.

If you still believe this would be useful I can see if other's feel the same and add it but some functionality will be lost doing so.

Why not?
Webpack official site is support typescript: https://www.electronjs.org/blog/typescript#usage

I had followed the electron-reloader issues, just FYI:
sindresorhus/electron-reloader#15 (comment)

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