Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: removecomposite: true from tsconfigs#635

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
haoqunjiang merged 1 commit intovuejs:mainfromhaoqunjiang:remove-composite
Dec 12, 2024

Conversation

haoqunjiang
Copy link
Member

@haoqunjianghaoqunjiang commentedDec 12, 2024
edited
Loading

Description

We are only usingreferences in a solution-style tsconfig. According to discussions atmicrosoft/TypeScript#60465, such usage doesn't requirecomposite: true to be set in sub-configs.

Removing this field loosens the constraints on these configs that all checked files to be explicitly listed infiles orincludes.

After this change, type errors in source code would only be reported twice if they're also imported by unit test specs, in contrast to always be reported twice prior to the change.
I know this is not ideal yet, but it's still an improvement, and might help catch some edge cases such as#437 (comment)

In the long run, we should still keep an eye on#549 (pendingvuejs/language-tools#4750). Cross-referencing might be a more intuitive configuration, and should be the desirable configuration if we opt into Vitest Browser Mode.

Lemmingh reacted with eyes emoji
We are only using `references` in a solution-style tsconfig.According to discussions atmicrosoft/TypeScript#60465,such usage doesn't require `composite: true` to be set in sub-configs.Removing this field loosens the constraints on these configs that allfiles to be explicitly listed in `files` or `includes`.After this change, type errors in source code would only be reportedtwice if they're also imported by unit test specs, in contrast toalways be reported twice prior to the change.I know this is not ideal yet, but it's still an improvement, and mighthelp catch some edge cases such asvuejs#437 (comment)In the long run, we should still keep an eye onvuejs#549(pendingvuejs/language-tools#4750).Cross-referencing might be a more intuitive configuration, and should bethe desirable configuration if we opt into Vitest Browser Mode.
@haoqunjianghaoqunjiang merged commit24fc23b intovuejs:mainDec 12, 2024
101 checks passed
@haoqunjianghaoqunjiang deleted the remove-composite branchDecember 12, 2024 16:49
@charnog
Copy link

@haoqunjiang to keep you informed about the implications of this PR.

There was a "Heisenbug" issue aboutDefault export of the module has or is using private name 'Props' TypeScript error (demo repo). It was resolved by removingcomposite: true. More infohere.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@cexbrayatcexbrayatcexbrayat approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@haoqunjiang@charnog@cexbrayat

[8]ページ先頭

©2009-2025 Movatter.jp