Skip to content

Watch mode has stale cache when using aliases #444

@nfxpnk

Description

@nfxpnk

Rollup Version

3.20.2

Operating System (or Browser)

Windows 10 latest

Node Version (if applicable)

18.13.0

Link To Reproduction

https://stackblitz.com/edit/rollup-repro-jz3iti?file=package.json
OR
https://github.com/nfxpnk/rollup-test

Expected Behaviour

  1. Run watch process: npm run watch
  2. Edit file test/flying-saucer/base/global/index.ts
  3. Watch process updates
  4. See builded file - dist-test/start.js
  5. New changes made in test/flying-saucer/base/global/index.ts present in builded file dist-test/start.js

Actual Behaviour

  1. Run watch process: npm run watch
  2. Edit file test/flying-saucer/base/global/index.ts
  3. Watch process updates
  4. See builded file - dist-test/start.js
  5. No changes in dist-test/start.js

If you will run just regular build with npm run build it works as expected.

Clean JS - not reproduceable - https://stackblitz.com/edit/rollup-repro-eghflu?file=rollup.config.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working properlyscope: cacheRelated to the cachescope: integrationRelated to an integration, not necessarily to core (but could influence core)scope: watch modeRelated to Rollup's watch mode

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions