Skip to content

Commit

Permalink
feat: 新增js解析钩子
Browse files Browse the repository at this point in the history
  • Loading branch information
ximing committed Nov 10, 2020
1 parent c670792 commit 1dfa5d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpbuild",
"version": "1.4.5",
"version": "1.4.6",
"description": "",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/handleJSDep.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = class HandleJSDep {
) {
let lib = node.arguments[0].value;
let libPath;
const resolveRes = mpb.resolveJS.call({ lib, asset });
const resolveRes = mpb.hooks.resolveJS.call({ lib, asset });
if (!resolveRes) {
return;
}
Expand Down

0 comments on commit 1dfa5d0

Please sign in to comment.