Skip to content

Commit

Permalink
refactor: remove lodash from global variable (#4266)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored May 20, 2020
1 parent 956242e commit 378c22b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/hexo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"hexo-renderer-nunjucks": "^2.0.0",
"hexo-util": "^2.0.0",
"js-yaml": "^3.12.0",
"lodash": "^4.17.11",
"micromatch": "^4.0.2",
"moment": "^2.22.2",
"moment-timezone": "^0.5.21",
Expand Down

0 comments on commit 378c22b

Please sign in to comment.