Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typescript): Change noEmitOnError default to false #544

Merged
merged 1 commit into from Sep 8, 2020

Conversation

NotWoods
Copy link
Member

BREAKING CHANGE: noEmitOnError now defaults to false instead of true. This means that Rollup will show a warning when type errors are encountered but will still compile. The previous behaviour is available by changing the setting to true.

Rollup Plugin Name: typescript

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

For watch mode to work, warnings must be used instead of errors. This behaviour better matches how Typescript works, since it only warns for type errors but compiles anyways. However, its different from how bundlers like Webpack work, as they usually fail.

@dummdidumm
Copy link
Contributor

Don't wanna rush, but is there anything blocking you from merging this in?

@NotWoods
Copy link
Member Author

NotWoods commented Sep 8, 2020

Waiting for review

@shellscape shellscape merged commit f9fe254 into rollup:master Sep 8, 2020
@NotWoods NotWoods deleted the 272_typescript-warn-on-error branch September 8, 2020 17:02
@benmccann
Copy link
Contributor

Thank you for this!! It will make it so much easier for newcomers to get started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants