소스 검색

chore: add package dependency graph

Evan You 6 년 전
부모
커밋
4e91b1328d
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. 24 0
      .github/contributing.md

+ 24 - 0
.github/contributing.md

@@ -173,6 +173,30 @@ This is made possible via several configurations:
 
 ### Package Dependencies
 
+```
+
+                                    +---------------------+
+                                    |                     |
+                                    |  @vue/compiler-sfc  |
+                                    |                     |
+                                    +-----+--------+------+
+                                          |        |
+                                          v        v
+                      +---------------------+    +----------------------+
+                      |                     |    |                      |
+        +------------>|  @vue/compiler-dom  +--->|  @vue/compiler-core  |
+        |             |                     |    |                      |
+   +----+----+        +---------------------+    +----------------------+
+   |         |
+   |   vue   |
+   |         |
+   +----+----+        +---------------------+    +----------------------+    +-------------------+
+        |             |                     |    |                      |    |                   |
+        +------------>|  @vue/runtime-dom   +--->|  @vue/runtime-core   +--->|  @vue/reactivity  |
+                      |                     |    |                      |    |                   |
+                      +---------------------+    +----------------------+    +-------------------+
+```
+
 There are some rules to follow when importing across package boundaries:
 
 - Never use direct relative paths when importing items from another package - export it in the source package and import it at the package level.