-
Notifications
You must be signed in to change notification settings - Fork 28
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
watch include options does not seem to work with path above #102
Comments
Hey @wighawag! I'm a bit confused, can you describe your folder structure? Not sure I understand where the |
I am using |
so to be clear the folder structure is as followed :
|
That would definitely cause issues. Nollup assumes that at all directories for watching (regardless of include or exclude) are under the current working directory provided by I'm not entirely sure what the appropriate solution for this. Having a file watcher watch files outside the current working directory can be very expensive in terms of performance. The more files you're watching, the slower file watching becomes, so it's generally ill-advised to expand the scope of watching. Will have to see if it's possible to add additional directories to |
there's a "watch" option for chokidar, where we could send watch paths via .nolluprc.js,
Hope you could add this option... basically i couldn't use nollup because of this... |
well,
|
problem for me was being unable to provide watch paths via options, in nollupDevMiddleware it already checks for a |
@Dulanjala007 |
The Also worth noting, because |
Relevant issue: rollup/plugins#490 |
@wighawag |
@piotr-cz so you mean I should use extra like |
@wighawag |
An option for a watch outside Is there a way today, @PepsRyuu? |
+1-ing this, am excited to try switching our dev tooling to nollup, have the same issues. Currently using rollup and our directory structure is roughly like this:
rollup doesn't require compiled files to be inside the same directory as rollup is executed from, so this has been working well. It also means we can cd into one tooling directory and there's an environment (package.json) there that can compile all parts of our app, which is a really nice way to do things. (In fact, rollup (tested on 3.10.0) is smart enough to watch everything under the entry file, so there was zero ext7ra config to get this working. i.e. with Above it's suggested that being able to watch files outside the cwd would represent a performance penalty — not sure I agree, i.e. I can't see that watching PS editing to add thanks for this awesome tool, was very excited to find it :D |
Thanks for the info @bhallstein! This is probably worth revisiting as I'm sure quite a bit has changed in the meantime since this issue was first raised. Been a bit pre-occupied with life in general lately, but hopefully I can have a look at it soon. :) |
Some research notes: So having a look into this, I replicated the type of folder structure you have above, and I can observe that Rollup does indeed watch imported files outside of the current working directory, while Nollup will ignore the files (but still include them in Rollup achieves this because its On the other hand, it might mean I have to look into implementing Will need to think about this more. |
@bhallstein Does this branch support your use case? #242 |
I have the following watch option:
and while it works when I change stuff in
src
, it does not when I change stuff in../test/dist
I also tried without
resolve
and same issue.Is that because nollup will not look in parent folders ?
The text was updated successfully, but these errors were encountered: