emaphp / underscore-template-loader

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

Support for Lodash #4

Closed SpaceK33z closed 8 years ago

SpaceK33z commented 8 years ago

Many people use lodash instead of underscore, and since they're API is about the same, I'm wondering if it's possible to also allow to use lodash.

At the moment I've forked this repo to add support for lodash; but I think it would be better if support for lodash is added in this repo.

Would you be interested if I make a PR for this? My plan is to remove underscore as a peerDependency and to replace the var _ = require('underscore'); with a check if the underscore package exists. If not, lodash is used.