Closed designeng closed 8 years ago
There is the problem with webpack relationship with require
function.
Webpack tries to evaluate the request expression in the line https://github.com/cujojs/wire/blob/master/wire.js#L25. Request function does not work here in the usual way - it's rewritten with inner webpack 'webpack_require' function with request to context module. As the result of recording phase the context module created by webpack has all inner files mapped.
It should be worked around with ContextReplacementPlugin.
Hey @designeng, thanks for investigating this and posting a followup. It'll be helpful for others who may run into the same warning.
Hi @designeng / @briancavalier,
Are there any usage samples of wire and webpack? I'm not sure how to have webpack bundle/load the wire library and then read wire specs. I appreciate the post and see deisgneng is working on a webpack loader for wire, but I can't tell how mature that effort is.
Thanks...
When I try to build with Webpack I have a lot of warnings and errors, the first message