Closed julianxhokaxhiu closed 4 years ago
Any update on this?
@julianxhokaxhiu I don't get this example
require("imports-loader?this=> window%2Cdocument|window%2Cdocument !path/to/library")
it's using the same exact same value twice ? Could you provide another example please :)
Actually the full example is living on my first comment. As you can see the issue ( https://github.com/webpack-contrib/imports-loader/issues/56 ) I'm providing a way to fill custom arguments inside the IIFE.
In this case, I'm using it to wrap angular libraries that still need the real document and window, but sometimes you can override them by providing a $window,$document
if needed.
The example is just a pure example, but you can use it the way you prefer. I truly think that this PR has some real value as I used it already with this patch on top. Would be nice if this goes upstream :)
Any update on this?
This project looks like dead to me. Are you still interested on this PR?
Example of usage:
Fixes https://github.com/webpack-contrib/imports-loader/issues/56