-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Loader.exec method does not eval loaders #667
Comments
To elaborate a little bit more, there is a loader that we have where we are trying to do a
Which we have the proper loader mapping setup for but when run through exec it effectively runs require and tries to exec the gif data as if it were javascript. |
I ran into this as well. It would be great if |
Had been struggling with this one for hours while trying to use I would be willing to dig deeper into this one, but I am too familiar with the internals of webpack so far. |
+1 exactly same problem as @noxan here. |
+1 |
Deriving from the parent config would be ideal but currently is there a way to hardcode a config into the .exec call to force it to use a proper loader? |
I'm wondering about this same issue — has anyone made progress? |
+1 banging our heads against this same issue for a few hours now. Any resolution or guidance would be greatly appreciated! |
I'm not sure if this will be helpful, but I ultimately ended up solving my issue by using the |
Cool, thanks for that info, @jessepollak! We actually ended up with a different solution using the exports-loader like so:
as advised in gajus/to-string-loader#2 (comment) |
Same problem as @kpdecker here. I have to build a static json (tojson-loader) that depends on a image path (file-loader). Any idea? |
Can you try against webpack 2? |
Hit on this on webpack 2. |
I quickly put together a version of |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Issue was closed because of inactivity. If you think this is still a valid issue, please file a new issue with additional information. |
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.
The text was updated successfully, but these errors were encountered: