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

Need help with more details on how this webpack-node-externals works #62

Open
dmngu9 opened this issue May 13, 2019 · 0 comments
Open

Comments

@dmngu9
Copy link

dmngu9 commented May 13, 2019

According to Readme, webpack-node-externals exclude any node_modules on server side.

I have a React SSR project and in webpack config for server side, I added this plugin in externals fields. On server side, I still need 'react' and 'react-dom' and react-apollo. It works fine but it suddenly makes me confused if all node_modules are excluded , how come react, react dom still work on server side?

Then I added a third party react component library and suddenly all exported stuff from it on server is undefined.

Please help me with my understanding

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

1 participant