Repository: next.js
Issue: Hot reload no longer work for updating packages in `node_modules` starting from `next@13.4.9-canary.2` for `pages` router
Labels: bug

### Link to the code that reproduces this issue

https://github.com/shuding/nextra/blob/repro13.4.9

### To Reproduce

1. `pnpm i`
2. `rm -rf examples/swr-site/.next && pnpm dev:theme-docs`
3. update following line https://github.com/shuding/nextra/blob/9ecfe981413f1c01188d36a3343728d12914e95f/packages/nextra-theme-docs/src/index.tsx#L230

### Current vs. Expected behavior

## current behaviour `13.5.3-canary.3`

```sh
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] CLI Change detected: change src/index.tsx
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] DTS Build start
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM Build start
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM dist/index.js 96.82 KB
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM ⚡️ Build success in 37ms
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] DTS ⚡️ Build success in 3423ms
```

## Behaviour with pinned version `13.4.8`

```sh
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] CLI Change detected: change src/index.tsx
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] DTS Build start
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM Build start
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM dist/index.js 96.25 KB
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] ESM ⚡️ Build success in 62ms
swr-site:dev: - wait compiling...
swr-site:dev: - warn Fast Refresh had to perform a full reload when ../../node_modules/.pnpm/file+packages+nextra-theme-docs_next@13.4.8_nextra@3.0.0-alpha.0_react-dom@18.2.0_react@18.2.0/node_modules/nextra-theme-docs/dist/index.js changed. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
swr-site:dev: - warn Fast Refresh had to perform a full reload when ../../node_modules/.pnpm/file+packages+nextra-theme-docs_next@13.4.8_nextra@3.0.0-alpha.0_react-dom@18.2.0_react@18.2.0/node_modules/nextra-theme-docs/dist/index.js changed. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
swr-site:dev: - event compiled client and server successfully in 1808 ms (3502 modules)
swr-site:dev: { route: '/en' }
swr-site:dev: update me3
swr-site:dev: { route: '/en/docs/getting-started' }
swr-site:dev: update me3
swr-site:dev: { route: '/en/docs/getting-started' }
swr-site:dev: update me3
swr-site:dev: { route: '/en' }
swr-site:dev: update me3
nextra-theme-docs:dev: [0] [NEXTRA-THEME-DOCS] DTS ⚡️ Build success in 5333ms
```

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020
Binaries:
  Node: 18.16.1
  npm: 9.4.1
  Yarn: 1.22.17
  pnpm: 8.6.7
Relevant Packages:
  next: 13.5.3-canary.3
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Additional context

this issue was introduced in [13.4.9-canary.2](https://github.com/vercel/next.js/releases/tag/v13.4.9-canary.2), bumping to `13.4.8` make hot reload work for packages in `node_modules`