Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote.require() #147

Closed
Robertfj opened this issue Jul 1, 2020 · 1 comment
Closed

remote.require() #147

Robertfj opened this issue Jul 1, 2020 · 1 comment

Comments

@Robertfj
Copy link

Robertfj commented Jul 1, 2020

I'm using Electron with React.

Whenever i have a remote.require(), the filepath will never get resolved, as it's really resoving it from top level main.js, and Destiny is trying to resolve it from where it's called.

would it be possible to add an exclution in the regular expression for 'remote.require' ?

Sample import:

const sshService = remote.require("./src/services/sshService.js");
@AnatoleLucet
Copy link
Collaborator

By now there's no way to do this with Destiny.
But some work is in progress to resolve "non-vanilla" imports (see #123). I'll add this case to #123 to keep everything in the same place and close this issue.
Thank you for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants