Skip to content

@rollup/plugin-typescript breaks rollup watch #418

Description

@milky2028
  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 4.1.2
  • Rollup Version: 2.10.9
  • Operating System (or Browser): macOS 10.15.4 and debian 10
  • Node Version: seen in most recent versions of both node 10 and node 12

How Do We Reproduce?

I've created a minimal repo.

npm install

Then,

npm run watch

to watch for changes. Make some changes to either of the files in the src directory, and you'll see that build files do not appropriately update. I was originally going to file a bug with the main rollup repo, but after testing with rollup-plugin-terser and @rollup/plugin-babel, I did not see this behavior with either of those plugins.

Expected Behavior

I expect that build files in the dist folder of the included minimal repo should actively respond to changes and each built file should reflect the changes in source files.

Actual Behavior

Build files do not appropriately respond and seem to be about one change behind.

If anyone sees this and is looking for a fix, reverting to 4.1.1 fixes this issue, but this also reintroduces the memory leak discussed in #322.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions