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

Error in electron+webpack #19

Closed
chinesedfan opened this issue Apr 9, 2018 · 1 comment
Closed

Error in electron+webpack #19

chinesedfan opened this issue Apr 9, 2018 · 1 comment

Comments

@chinesedfan
Copy link
Contributor

electron provides a module module like node.js, so it differs with the pure browser environment described in #18.

But webpack's modules do not have module.parent(Refer webpack3). Can we add an undefined check for the following line?

parent.children && parent.children.splice(parent.children.indexOf(m), 1);
@floatdrop
Copy link
Owner

@chinesedfan sure, can you make a PR?

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