Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit aa255bb

Browse files
authored
fix: send arguments in watchPatterns hook (#449)
Need to send the arguments when we call the original method inside before-watchPatterns hook.
1 parent 847a56f commit aa255bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/before-watchPatterns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { AppDirectoryLocation } = require("./constants");
33
module.exports = function (hookArgs) {
44
if (hookArgs.liveSyncData && hookArgs.liveSyncData.bundle) {
55
return (args, originalMethod) => {
6-
return originalMethod().then(originalPatterns => {
6+
return originalMethod(...args).then(originalPatterns => {
77
const appDirectoryLocationIndex = originalPatterns.indexOf(AppDirectoryLocation);
88
if (appDirectoryLocationIndex !== -1) {
99
originalPatterns.splice(appDirectoryLocationIndex, 1);

0 commit comments

Comments
 (0)