You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
I have a system that works perfectly with "compiled" javascript code, as done by electron-forge. It does exactly what I need.
Then I needed to fork a new process. This means I can't just point it to the javascript file that I want to run, because that's compiled and in the .cache directory. I can't just re-launch es6-shim.js, because that is hardcoded to launch the application in package.json. I've resorted to copying in the raw js files, which kinda defeats the purpose of pre-compiling
How can I accomplish this? I've launching the child process with script:
const electronCompile = require('electron-compile');
const c = electronCompile.init(__dirname, 'child.js');
but c is undefined and I can't use it as I would a require-d object. I can't figure out how to pass parameters into the newly minted process and call a js file that has been pre-compiled.
Any ideas?
The text was updated successfully, but these errors were encountered:
I have a system that works perfectly with "compiled" javascript code, as done by electron-forge. It does exactly what I need.
Then I needed to fork a new process. This means I can't just point it to the javascript file that I want to run, because that's compiled and in the
.cache
directory. I can't just re-launches6-shim.js
, because that is hardcoded to launch the application inpackage.json
. I've resorted to copying in the raw js files, which kinda defeats the purpose of pre-compilingHow can I accomplish this? I've launching the child process with script:
but c is
undefined
and I can't use it as I would arequire
-d object. I can't figure out how to pass parameters into the newly minted process and call a js file that has been pre-compiled.Any ideas?
The text was updated successfully, but these errors were encountered: