Closed eyalw closed 8 years ago
Did you manage to resolve this? If you want require('whatever')
, you can set resolve.root.
I'm currently rewriting the book btw. As that particular chapter went away and the statement isn't there anymore, I'm closing this. Feel free to continue conversation, though.
hey, it seems absolute import doesnt work for me. what happens is that webpack translates the require('/whatever') to a url, and my server tries to load it, instead of webpack importing it. https://github.com/christianalfoni/react-webpack-cookbook/wiki/Requiring-files
entry: [ './client/scripts/index.js', 'webpack-hot-middleware/client', ],