Skip to content

Commit 9211b14

Browse files
fix: pass args to original method
Pass the original arguments to the original method when calling.
1 parent d7ec9d0 commit 9211b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/before-watchPatterns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function (hookArgs) {
22
if (hookArgs.liveSyncData && !hookArgs.liveSyncData.bundle) {
33
return (args, originalMethod) => {
4-
return originalMethod().then(originalPatterns => {
4+
return originalMethod(...args).then(originalPatterns => {
55
originalPatterns.push("!app/**/*.ts");
66

77
return originalPatterns;

0 commit comments

Comments
 (0)