Skip to content

Handling module paths? #2120

@grofit

Description

@grofit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions