We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506e01c commit 152d6fdCopy full SHA for 152d6fd
index.js
@@ -20,6 +20,7 @@ module.exports = function (source) {
20
}
21
22
const compiled = _.template(source);
23
+ const renderedView = compiled();
24
- return 'module.exports = ' + JSON.stringify(compiled) + ';';
25
+ return 'module.exports = function() { return ' + JSON.stringify(renderedView) + '; };';
26
};
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "lodash-simple-template-loader",
3
- "version": "1.0.0",
+ "version": "1.1.0",
4
"description": "Lodash template loader for Webpack",
5
"main": "index.js",
6
"scripts": {
0 commit comments