emaphp / underscore-template-loader

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

Make sure the right engine is available as `_` when withImports is true #23

Open demerzel3 opened 7 years ago

demerzel3 commented 7 years ago

The fix is a really small one, it just takes care of adding _ as the first imported symbol.

For testing I had to actually load the generated module to check what was going on, so I had to add a couple of dependencies, hope you don't mind. Of course I'm open to suggestions and improvements.

Fixes #22