From 4e91b1328dda38e342b9dd0794ee1483ad2a7002 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 12 Dec 2019 21:22:29 -0500 Subject: [PATCH] chore: add package dependency graph --- .github/contributing.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/contributing.md b/.github/contributing.md index 930e1a21..7ddf25c1 100644 --- a/.github/contributing.md +++ b/.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.