breautek commented on issue #279: URL: https://github.com/apache/cordova-electron/issues/279#issuecomment-2237580142
Regarding typescript, most of the cordova tooling was written 10+ years ago. Consuming JS-authored packages from TS code is a pain since you don't really get proper type checking when importing JS packages into TS. So it only really makes sense if all the tooling is refactored to TS, or at least has JSDocs that explicitly declares types (which again, most of the codebase does not). Refactoring the codebase to TS is a massive project which most people who are volunteering their time don't have an interest in pursuing. On the other hand, JS code can import TS-authored packages just fine, providing that they were compiled to JS first. If you're project is authored in TS, there shouldn't be any issues. You may have to check if the cordova bits are authored in commonjs or ES modules and be consistent however. I'm pretty sure CommonJS format is used. For hot reload, traditionally that was done via `cordova-serve`, which produces a local webserver that hosts the platform files. Serve itself didn't do the hot reload part (that is detects file changes and triggers a refresh) but if hot reload libraries could be brought in. I however do not know if cordova-electron supports `cordova serve`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
