Skip to content

@rollup/plugin-typescript watch mode changes only works once, fails to rebuild on subsequent changes #1881

@goldenratio

Description

@goldenratio

Steps to Reproduce:

  • Clone the repo and run npm install.
  • Start the dev server with:
npm run dev
  • Open http://localhost:8080/ in your browser.
  • Edit src/game/scenes/MainMenu.ts (or any other TypeScript file in src/) and save - the changes are correctly reflected in the browser.
  • Make a second change and save again.

Expected Behavior

Rollup's watch mode should detect subsequent changes and rebuild the affected files every time a save is triggered, reflecting those updates in the output.

Actual Behavior

After the first successful rebuild, subsequent file changes do not trigger any further recompilation. The dev server remains running, but updated code is not reflected.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions