### Bug description

On Ubuntu, using Quarto 1.2.335 preview reloads when I modify local `.js` files that I require into my qmd file in ojs blocks

On 1.3.353 and 1.4.78, this isn't working when I update the .js file or `echo "hi" > ` it. *It does work when I **remove** and write a new file.*

`.js` file is in a resources folder, listed in `format: html: resources` yml.



1.4.78 info:

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK
      Dart Sass version 1.55.0: OK
      Deno version 1.33.2: OK
[✓] Checking versions of quarto dependencies......OK
```

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.2: OK

      Dart Sass version 1.55.0: OK
      Deno version 1.33.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.78
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.6
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [ ] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
jjallaire
2023-05-19T19:22:47Z
declann
bug
closed
`preview` regression: no longer watching `.js` resources properly
https://github.com/quarto-dev/quarto-cli/issues/5611