I posted this on Slack but got no response so just wanted to post in here.
Hey so I am fairly new to electron and I was wondering how I can set the base path for modules
grofit [9:46 AM]
as I was trying to bundle stuff, but that blows up because although lots of stuff is in the bundle when other modules need to reference stuff (as the module magic dance picks common JS not normal global scope) it falls over as it cannot find the module
grofit [9:47 AM]
I thought maybe it just embeds requirejs so I tried setting the require config path but it tells me require.config is not a function
grofit [9:47 AM]
so is there some best practice way to deal with lots of dependencies? and/or bundling
I posted this on Slack but got no response so just wanted to post in here.
Hey so I am fairly new to electron and I was wondering how I can set the base path for modules
grofit [9:46 AM]
as I was trying to bundle stuff, but that blows up because although lots of stuff is in the bundle when other modules need to reference stuff (as the module magic dance picks common JS not normal global scope) it falls over as it cannot find the module
grofit [9:47 AM]
I thought maybe it just embeds requirejs so I tried setting the require config path but it tells me require.config is not a function
grofit [9:47 AM]
so is there some best practice way to deal with lots of dependencies? and/or bundling