webpack-contrib/expose-loader

Exposing modules which augment existing objects

Closed this issue · 1 comments

So I currently use Sugar.js internally in a library (webpack outputs as a library) and sugar just extends native objects so there is no object returned from its require, i.e:

require("sugar");

var value = "hello {1}".assign("bob");

So in these scenarios how can I get it to expose this module when it does not return anything?

This is a non-issue, turns out the module was not being included correctly so it was not being picked up so expose could not expose it, I manually added a file which explicitly had this file in for re-exporting and it worked so closing.