Hit a snag where trying to run the exec
method on a require statement that has a loader in it, causing it to fail out.
Not sure what solutions are available here, but it would be nice to have loader require support within exec or document how to properly “polyfill require” that the val-loader alludes to.
I’m not sure if this will be helpful, but I ultimately ended up solving my issue by using the
_compilation.createChildCompiler
functionality. If you’re interested, you can see how I do that here.Hit on this on webpack 2.