diff --git a/lib/hexo/index.js b/lib/hexo/index.js index b558e6a711..ea07558e04 100644 --- a/lib/hexo/index.js +++ b/lib/hexo/index.js @@ -4,7 +4,6 @@ const Promise = require('bluebird'); const { sep, join, dirname } = require('path'); const tildify = require('tildify'); const Database = require('warehouse'); -const _ = require('lodash'); const { magenta, underline } = require('chalk'); const { EventEmitter } = require('events'); const { readFile } = require('hexo-fs'); @@ -368,7 +367,6 @@ class Hexo extends EventEmitter { this.url = full_url_for.call(ctx, path); this.config = config; this.theme = theme.config; - this._ = _; this.layout = 'layout'; this.env = env; this.view_dir = join(theme_dir, 'layout') + sep; diff --git a/package.json b/package.json index 67904bf6fc..76293ca422 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "hexo-log": "^1.0.0", "hexo-util": "^1.9.0", "js-yaml": "^3.12.0", - "lodash": "^4.17.11", "micromatch": "^4.0.2", "moment": "^2.22.2", "moment-timezone": "^0.5.21",