Skip to content

Cache is not cleared when transformer changes #228

@oscard0m

Description

@oscard0m

What happens and why it is wrong

Without clean: true option, the plugin is catching the configuration even if changes at rollup config level are done (changing the implementation of a transformer implementation for instance)

Until verbosity: 3 was not set, it was not discovered cache could be an issue

Questions
  • Is there any historical reason to set clean: false as default? It sounds like the default configuration should be without """magic""" on top right?
  • What do you think about adding a warning when cache is used so users notice about it with default verbosity level?
  • I did not check how cache is implemented but, is it an expected behaviour to not clean the cache when there are changes on the transformers passed to this plugin or is a bug?

Environment

macOS catalina v10.15.4
node 14.2.0

Versions

  • typescript: 3.9.3
  • rollup: 2.10.5
  • rollup-plugin-typescript2: 0.27.1

rollup.config.js

Not relevant

tsconfig.json

Not relevant

package.json

Not relevant

plugin output with verbosity 3

Not relevant

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions