plasticine / inject-loader

💉📦 A Webpack loader for injecting code into modules via their dependencies.
https://www.npmjs.com/package/inject-loader
MIT License
482 stars 47 forks source link

Add failover to base module #7

Closed kpdecker closed 9 years ago

kpdecker commented 9 years ago

If an injected name is omitted, allow for failover to the base module implementation. if an injected value is not provided.

Not certain if this should be configurable or not and a default if configurable but it does make mocking much easier and reduces the coupling between the source and test files.

plasticine commented 9 years ago

Thanks—this seems like a pretty nice little change.