Replies: 1 comment 1 reply
-
It's been a while since this proposal was written, and I personally don't see major flaws in the proposal itself. There may be minor issues or improvements, but I think these can be addressed over time after implementation. Thoughts on trying this @kdy1 ? If we try this one, probably rough flow looks like this
|
Beta Was this translation helpful? Give feedback.
-
Summary
Establish searchable historical record for the feature development, or changes for the SWC.
Motivation
SWC gets bigger with lot of new features or changes. This is something expected since SWC is a core building block for the JS toolchain and each users have workflows may require support from SWC. We'd like to introduce thin template to track those to let core team member understands background, also keeps historical record in case we need to look for.
Detailed design
Proposal template
This is largely borrowed from https://github.com/reactjs/rfcs/blob/main/0000-template.md, there were couple of existing proposal based on this (#3065)
Proposal process
Proposal
?Feature request
?)Open
if it's ready to discussIt is possible once rejected feature can be reconsidered over time due to various reasons. A new proposal based on previous proposal describes what's been changed will be required.
Proposal (RFC) vs. ADR
SWC keeps track of architecture decision record (https://github.com/swc-project/swc/tree/main/docs/adr) already. It serves slightly different to feature proposal does. We write ADR when
It actually overlaps lot though. In most cases for the new features, we may end up having a RFC and ADR both. But in case of ADR it'll include more of implementation details while actually implementing RFC. Plugin ADR is a good example (https://github.com/swc-project/swc/blob/main/docs/adr/00001-support-transformation-plugin-native.md).
What can go @SWC/Core vs. not
There is ongoing effort to support plugin (#3540) which can makes most of custom features into userland. SWC's core team want to utilize this as much. However, as of today it is not fully stablized to encourage to write plugin for any custom features. For those reason this proposal does not cover to categorizing what feature request should go for the core or not.
Beta Was this translation helpful? Give feedback.
All reactions