Open Skysplit opened 6 years ago
I'm not sure why this issue is filed in electron-compile
when you're referring to the electron
script. They're two different modules.
With pure electron it seems fine. After installing electron-prebuilt-compile
this one does not work.
OK. Why do you need to run babel-register
with electron-prebuilt-compile
, when it does that for you?
I'd like to use import
statement in Main Process (and other es6 features). Only solution I found was using babel-register.
You don't need to use babel-register
, see https://github.com/electron/electron-compile#how-do-i-set-up-babel--less--whatever-the-way-i-want
When trying to run
node_modules/.bin/electron -r babel-register .
package interprets-r
as directory argument and fails to start.It would be nice to respect electron CLI arguments with
electron-compile