robertcorponoi / electron-vue3-ts-quick-start

Easy to use template for creating an app with Electron, Vue3, and Typescript
19 stars 3 forks source link

how can use main js by typescript? #1

Open qq1053831109 opened 3 years ago

qq1053831109 commented 3 years ago

how can use main js by typescript?

robertcorponoi commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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