Skip to content

Commit

Permalink
fix(cli): fixed replace source bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Sep 20, 2018
1 parent 8685863 commit b786407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/core/plugins/scriptDepFix.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports = module.exports = function () {
}
}
}
parsed.source.replace(dep.expr.start, dep.expr.end, replaceMent);
parsed.source.replace(dep.expr.start, dep.expr.end - 1, replaceMent);
});
});
}

0 comments on commit b786407

Please sign in to comment.