Darkness
Darkness

Reputation: 41

How to make an executable (.exe) for nodeJs project having files in ES6 format?

I'm working on a project which requires my code to be converted into an executable .exe format to make it run on windows. However I can't find any method or a solution to convert my nodeJs codebase which is in ES6 format into an executable.

I came across few solution such as nexe and pkg, but neither of them supports ES6 - these two packages expects my codebase to be in a ES5 format which has require in it instead of import

Upvotes: 1

Views: 3549

Answers (1)

Darkness
Darkness

Reputation: 41

After surfing around a bit on google, git issues and discussion, I found a solution on pkg's discussion thread. The second solution on the below image works well for my application and use case. https://github.com/vercel/pkg/discussions/1388

solution

Upvotes: 1

Related Questions