New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to change followSymlinks #72
Add option to change followSymlinks #72
Conversation
@@ -51,7 +51,7 @@ function DirectoryWatcher(directoryPath, options) { | |||
this.watcher = chokidar.watch(directoryPath, { | |||
ignoreInitial: true, | |||
persistent: true, | |||
followSymlinks: false, | |||
followSymlinks: !!options.followSymlinks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking change, default is not false, default is boolean value options.followSymlinks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you don't specify options.followSymlinks
, it will be undefined
. Well, we'll have !!options.followSymlinks === !!undefined === false
. So yes, default is still false, no breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@birdy- hm, you are right
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
- Coverage 95.5% 95.22% -0.29%
==========================================
Files 3 3
Lines 356 356
Branches 97 97
==========================================
- Hits 340 339 -1
- Misses 16 17 +1
Continue to review full report at Codecov.
|
Let's ship it |
Yes, ship it! |
Go ahead |
I sent link on PR in closed webpack slack channel, just wait 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks fine. However, how would you set this option in webpack
? Could you post an example here?
I think it would be next to
|
Then you should also submit a PR to update the schema if this one lands 👍 |
I'm tempted to accept the PR but I'm worried about having |
I'll open a PR, but I'll have to update package.json's |
@ooflorent I definitely agree with you. Can we open up an issue slated for v5 so we can change the default to be what the user also expects out of the box. |
Added an issue on webpack webpack/webpack#6845 |
Anything we can do to help this move forward? When using |
Yep, can this please get merged? Seems there are quite a few people who would benefit from this change and merging it here is the first step necessary to make it possible to add it to webpack - and also just because it is merged here does not mean that webpack has to expose the option yet. Also following semver this is a backwards compatible change and should ideally be shipped with v4. |
@birdy- maybe you could rebase this branch? It would be great to get this merged! |
2681e79
to
22cda93
Compare
I rebased. Ready to ship it captain' |
@ooflorent @evilebottnawi @TheLarkInn Would it be possible to get another look at this PR? It would be a really helpful bug fix. |
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
- Coverage 95.5% 95.22% -0.29%
==========================================
Files 3 3
Lines 356 356
Branches 97 97
==========================================
- Hits 340 339 -1
- Misses 16 17 +1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
- Coverage 95.5% 95.22% -0.29%
==========================================
Files 3 3
Lines 356 356
Branches 97 97
==========================================
- Hits 340 339 -1
- Misses 16 17 +1
Continue to review full report at Codecov.
|
Is the drop in code coverage a blocker on getting this merged? |
Can we ship it ? |
we need that pleaaaaaase :( ship it |
Once this lands, we can remove a couple of linux-specific hacks in our projects, symlink-related. |
We have a really dirty hack in our system for a linux-based project, that one can be removed if this gets merged. Would be great to ship it. |
This is much needed for us! To be merged soon? 👍 |
this would be cool |
This is needed for our project as well. It would be really useful to have this released ASAP. |
@ooflorent any chance to have a look at this PR? ^_^ |
+1 love to have this, free hugs? |
@sokra what is the story now with watchpack 2? It seems you implement your own watcher now. Does this support a followSymlink option? |
I also got the same problem ... thank you everyone ... I think the webpack team would be very good if adding this feature (follow Symlink option) |
#114 adds the followSymlink option |
There is many projects who need to configure this option. This simple PR allow to pass a
followSymlinks
options to change it. Default is stillfalse
.Webpack issue:
webpack/webpack#1866
Watchpack issue:
#61