Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Webpack compatibility #34

Open
bthallion opened this issue Dec 4, 2017 · 2 comments
Open

Webpack compatibility #34

bthallion opened this issue Dec 4, 2017 · 2 comments

Comments

@bthallion
Copy link

Does this module support using webpack with electron?

@aguynamedben
Copy link

aguynamedben commented Jun 13, 2018

FWIW I'm trying to get this working with electron-react-boilerplate, and the usage of require.resolve() at https://github.com/electron-userland/electron-remote/blob/master/src/renderer-require.js#L44 seems to conflict with that project's usage of Webpack.

See this for the details of getting electron-remote working with Webpack: electron-react-boilerplate/electron-react-boilerplate#1587

Apparently require.resolve() and Webpack don't play nicely with each other. I'm not well-versed on the history of require(), require.resolve(), dynamic import(), and how they all work between the Node.js, Webpack, Babel, and Electron ecosystems, but I'm trying to figure it out if anybody has any quick pointers.

@aguynamedben
Copy link

I had to make a small change to get Webpack working: #42

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

No branches or pull requests

2 participants