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

fix: make plugin work in electron renderers #58

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented Apr 1, 2020

This PR removes the dependency on react-dev-utils/formatWebpackMessages, which depends on chalk. The issue with chalk was that it calls process, which will fail in electron environments.

@pmmmwh pmmmwh added the bug Something isn't working label Apr 1, 2020
@pmmmwh pmmmwh self-assigned this Apr 1, 2020
@pmmmwh pmmmwh merged commit 78120b3 into master Apr 1, 2020
@pmmmwh pmmmwh deleted the fix/electron-compatibility branch April 1, 2020 22:05
@MOZGIII
Copy link

MOZGIII commented Apr 1, 2020

I'm pretty sure the root cause is that there should be multiple bundles, per-environment: one for node side and one for browser side. And each has to contain only the necessary code, to avoid invoking the functionality that's not available under certain environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract runtime to a separate package and preprocess it with webpack for embedding
2 participants