Bit Planets
Bit Planets
Is not to use on the server side, but is to keep the window namespace clean. If I provide a module.export or define, you should export your module to that....
I think would be useful for others.
You also need to add `extensions: ['', '.js', '.json'],` to your webpack config. I'm also having problems on node.js... Not easy to fix.
@sokra Please merge this and add publish to npm. Thanks
No because is easier for some function to return something by mistake, than set a property on exports variable. Ok, I will try to make a test (:
@sokra Added the tests
@sokra Added, also allows to return falsy values.
Ok, I've made the changes.
Here https://github.com/webpack/enhanced-require/blob/master/lib/RequireContext.js#L344 instead of: ``` fn(reqFn, parent.exports, parent); ``` should be ``` parent.exports = fn(reqFn, parent.exports, parent); ``` Or something more specific, like only replacing if no value is set...
+1 when you need server-side rendering you need image urls.