electron-aurelia-example icon indicating copy to clipboard operation
electron-aurelia-example copied to clipboard

Leverage native require() support?

Open timwis opened this issue 8 years ago • 1 comments

Thanks for creating this repo. I was hoping to find a way of leveraging electron's native require() support to avoid needing to use SystemJS. This line suggests it may be possible with bootstrapper, but I haven't had any luck. Have you tried? Or is there a reason it's not a good idea?

timwis avatar May 12 '16 11:05 timwis

@timwis sorry, I have just seen this issue.

The native require support for electron, at least in the version this repo is based on, is for host paths not client paths (see https://github.com/jimschubert/electron-aurelia-example/blob/master/client/test.js). I'm not sure exactly how that would work with Aurelia. I know when I created this repo there was work being done to remove the dependency on SystemJS (or at least make it less the standard loader). I'll have to try to find time to revisit this repo now that Aurelia has hit 1.0.

jimschubert avatar Jul 30 '16 14:07 jimschubert