How to run my Electron TypeScript application?See original GitHub issue
Hi everyone, I am trying to implement bytenode, but I am a bit stuck with making my application run with
.jsc files. These are the steps that I took:
- Converted my TS files to JS files;
- Use the
bytenode --compilecommand to convert all these JS files to JSC files;
- Removed all the JS files;
Right now I’ve got all my files converted to JSC files, but I have no idea how to run my application with these JSC files.
I’ve read that I had to add
require('./main.jsc'); to my files, but they all seem to give errors when I try to run the code the original code.
Does anyone have an idea/walkthrough to run an Electron app with JSC converted files? Thank you 🙂 Operating system: macOS
- Created a year ago
Top GitHub Comments
You have to
require('bytenode') before running your
And, you have to use electron executable itself in compiling your code. You can not compile them using node amd run them using electron.