webpack-contrib / imports-loader

Imports Loader
MIT License
520 stars 63 forks source link

imports-loader doesn't work in combination with expose-loader #62

Closed armaanahluwalia closed 4 years ago

armaanahluwalia commented 6 years ago

Unfortunately, I don't have time to repro this issue but I'm very sure ( and have just confirmed) when imports-loader and expose-loader are both applied on the same file, doing imports loader this=>window will not work since the imports-loader will try to 'call' the additionally wrapped function generated by expose-loader instead of the actual module function.

Solution Remove expose-loader on the file and imports-loader will start to work

alexander-akait commented 4 years ago

Bug on expose-loader and will be fixed in near future