本仓库基于 vuejs/core(
v3.4.33)构建,主要用作个人阅读、调试与学习 Vue 3 源码。
除 Vue 3 官方核心源码(packages/*)外,本仓库额外包含个人学习过程中的调试示例与源码书签:
- 响应式系统调试示例(
packages/reactivity/why/、packages/reactivity/why2/):涵盖reactive、ref、readonly、computed、依赖嵌套与重新收集、computed结合watch等场景。 - 运行时与编译流程调试示例(
packages/vue/why/、packages/vue/why2/):涵盖渲染流程、无 key / 有 key / Block Diff 算法、watch、watchEffect、nextTick、keep-alive及编译器执行过程。 - 源码阅读书签(
.vscode/bookmarks.json):记录了reactivity、runtime-core、runtime-dom、compiler-dom、vue、shared等核心入口与关键函数位置(配合 VS Code Bookmarks 插件使用)。
# 安装依赖
pnpm install
# 启动开发环境构建(带 sourcemap,便于浏览器断点调试)
pnpm dev原始 vuejs/core README
Please follow the documentation at vuejs.org!
Vue.js is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider sponsoring Vue's development.
For questions and support please use the official forum or community chat. The issue list of this repo is exclusively for bug reports and feature requests.
Please make sure to respect issue requirements and use the new issue helper when opening an issue. Issues not conforming to the guidelines may be closed immediately.
Please make sure to read the Contributing Guide before making a pull request. If you have a Vue-related project/component/tool, add it with a pull request to this curated list!
Thank you to all the people who already contributed to Vue!
Copyright (c) 2013-present, Yuxi (Evan) You