I have something like this in my webpack config:
plugins:[
new webpack.ProvidePlugin({ THREE: 'three' }),
...
which makes THREE available globally (or at least wherever its used?)
I would like to override a method from this library, for example in the entry point:
THREE.Something = mySomething;
I'm not succeding, how is this done?
Alternatively i tried something like.
require(expose?THREE!./myCustomThree.js);
But that didnt work either, i only got it in the scope where i made the require call. I was able to override the method though, but can't make it global.