emaphp / underscore-template-loader

A Underscore and Lodash template loader for Webpack
MIT License
104 stars 24 forks source link

Lodash dependency #14

Closed jantimon closed 8 years ago

jantimon commented 8 years ago

Please please add the lodash dependency (at least as peerDependency). Otherwise I can't use this loader for the html-webpack-plugin as it fails without lodash.

Lodash is a clear dependency of this module - as it does not run without it.

How do other loaders handle it?

emaphp commented 8 years ago

This module can run both with underscore and lodash. I think this is a great example of why it's necessary for the lodash community to fork this project and add the changes they believe necessary. This module is aimed to underscore users, lodash support was added only because is seemed convenient at the moment. Adding lodash as a peerDependency is out of the question given that they are already obsolete. I understand your frustation, but I think that mantaining a module that can run with different libraries supporting different features will lead to a messy implementation, more issues and less quality overall.