Browse Source

fix lodash require

master
John Shaver 2 years ago
parent
commit
ae4f33ac50
  1. 3
      package.json
  2. 2
      templater.js

3
package.json

@ -9,6 +9,7 @@
"author": "john@rootprojects.com",
"license": "UNLICENSED",
"dependencies": {
"body-parser": "^1.19.0"
"body-parser": "^1.19.0",
"lodash.escape": "^4.0.1"
}
}

2
templater.js

@ -1,4 +1,4 @@
let escape = require("lodash/escape");
let escape = require("lodash.escape");
module.exports = function(strings) {
//first element is the strings, don't need it

Loading…
Cancel
Save