docs(contributing): change dependencies graph to mermaid (#6901)

This commit is contained in:
Flávio Reis 2022-11-14 01:48:58 +00:00 committed by GitHub
parent d01c091967
commit a52141a62b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 21 deletions

View File

@ -222,27 +222,29 @@ This is made possible via several configurations:
### Package Dependencies ### Package Dependencies
``` ```mermaid
+---------------------+ flowchart LR
| | compiler-sfc["@vue/compiler-sfc"]
| @vue/compiler-sfc | compiler-dom["@vue/compiler-dom"]
| | compiler-core["@vue/compiler-core"]
+-----+--------+------+ vue["vue"]
| | runtime-dom["@vue/runtime-dom"]
v v runtime-core["@vue/runtime-core"]
+---------------------+ +----------------------+ reactivity["@vue/reactivity"]
| | | |
+------------>| @vue/compiler-dom +--->| @vue/compiler-core | subgraph "Runtime Packages"
| | | | | runtime-dom --> runtime-core
+----+----+ +---------------------+ +----------------------+ runtime-core --> reactivity
| | end
| vue |
| | subgraph "Compiler Packages"
+----+----+ +---------------------+ +----------------------+ +-------------------+ compiler-sfc --> compiler-core
| | | | | | | compiler-sfc --> compiler-dom
+------------>| @vue/runtime-dom +--->| @vue/runtime-core +--->| @vue/reactivity | compiler-dom --> compiler-core
| | | | | | end
+---------------------+ +----------------------+ +-------------------+
vue ---> compiler-dom
vue --> runtime-dom
``` ```
There are some rules to follow when importing across package boundaries: There are some rules to follow when importing across package boundaries: