rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.57k stars 568 forks source link

Resolve issue #1652 - Typescript plugin fails to compile the entry point when there is at least one invalid TypeScript file somewhere is the working directory #1653

Open ericmorand opened 6 months ago

ericmorand commented 6 months ago

Rollup Plugin Name: typescript

This PR contains:

Are tests included?

Breaking Changes?

List any relevant issue numbers:

Description

This PR solves the issue described in #1652. It focuses on not creating a breaking changes by ensuring that no existing test was modified - except one that I'd like to discuss with the maintainers.

Basically, what this PR does is to remove the initial emit of all the files included in th working directory and instead emit files that are part of the dependency graph of the entry point.