Vue2.6.x源码阅读 - 1.准备工作
编译
# 获取源码 $ git clone git@github.com:vuejs/vue.git # 安装依赖 $ yarn # 代码运行 $ yarn dev
调试
// ~/scripts/config.js function genConfig (name) { const opts = builds[name] const config = { input: opts.entry, external: opts.external, // 增加sourceMap配置 sourceMap: true, // ... } } // ...# 启用sourcemap $ yarn dev --sourcemap
最后更新于

