farm-fe/farm

[Bug Report]: farmModuleSystem.require has cache

Opened this issue · 0 comments

Steps to reproduce

  1. cd example/react-ssr
  2. run pnpm start and run pnpm watch in another terminal
  3. modify any file and refresh browser
  4. add console.log("entry", entry.default.toString()); in inde.js and see the output
    image
    we can see the output file content is children: "111" but the require result is children: "11"

Reproduce link

No response

What is actually happening?

none

System Info

System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 97.02 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/Library/Caches/fnm_multishells/86588_1717911475315/bin/node
    Yarn: 1.22.21 - ~/Library/pnpm/yarn
    npm: 10.2.4 - ~/Library/Caches/fnm_multishells/86588_1717911475315/bin/npm
    pnpm: 9.1.4 - ~/Library/Caches/fnm_multishells/86588_1717911475315/bin/pnpm
    bun: 1.0.25 - ~/.bun/bin/bun
  Browsers:
    Chrome: 125.0.6422.142
    Safari: 17.4.1