facebook / facebook/docusaurus

swizzle --patch

Open
#5,734 1 comment 1 reaction 0 assignees View on GitHub
difficulty: advanced proposal
Dominant language
TypeScript
Stars
66.2k
Forks
10k
Avg merge
1d 3h
Merged PRs (30d)
52

Description

## 💥 Proposal

We can make swizzle something similar to [`yarn patch`](https://yarnpkg.com/cli/patch): it lets you change a file and only records the diff. During an upgrade, if there's a "merge conflict", it asks you to reswizzle the component.

I have no idea how heavy the implementation would be on our side, or if there are packages we can use

### Have you read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/master/CONTRIBUTING.md#reporting-new-issues)?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.