electron-vue3-ts-quick-start icon indicating copy to clipboard operation
electron-vue3-ts-quick-start copied to clipboard

how can use main js by typescript?

Open qq1053831109 opened this issue 4 years ago • 3 comments

how can use main js by typescript?

qq1053831109 avatar Jan 07 '21 10:01 qq1053831109

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.

robertcorponoi avatar Feb 13 '21 02:02 robertcorponoi

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 avatar Apr 12 '21 11:04 ZQ-jhon

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: https://github.com/sindresorhus/electron-reloader/issues/15#issuecomment-707181176

ZQ-jhon avatar Apr 12 '21 11:04 ZQ-jhon