Skip to content

Commit

Permalink
fix: removing 'path' require
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmtrv committed Nov 20, 2019
1 parent 61bae76 commit e140f47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/locale/locales.js
Expand Up @@ -53,8 +53,7 @@ function loadLocale(name) {
try {
oldLocale = globalLocale._abbr;
var aliasedRequire = require;
var path = aliasedRequire('path');
aliasedRequire(path.resolve(__dirname, './locale/' + name));
aliasedRequire(__dirname + '/locale/' + name);
getSetGlobalLocale(oldLocale);
} catch (e) {}
}
Expand Down

0 comments on commit e140f47

Please sign in to comment.