Skip to content

Commit

Permalink
feat: 去除无用的ts引用检测
Browse files Browse the repository at this point in the history
  • Loading branch information
ximing committed Aug 3, 2019
1 parent ef7490e commit de797ed
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/plugin/handleJSDep.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,9 @@ module.exports = class HandleJSDep {
try {
libPath = resolve.sync(path.join(asset.dir, lib));
} catch (e) {
try {
libPath = bresolve.sync(lib, {
basedir: mpb.src
});
} catch (e) {
libPath = resolve.sync(`${lib}.ts`, {
basedir: mpb.cwd
});
}
libPath = bresolve.sync(lib, {
basedir: mpb.src
});
}
}

Expand Down

0 comments on commit de797ed

Please sign in to comment.