【Vue3】Vue3源码调试

1、git 地址:git clone https://github.com/vuejs/vue-next.git

2、npm install 或者yarn install(npm install -g yarn)

3、安装完yarn和依赖后,在vue-next项目中找到rollup.config.js文件加上 output.sourcemap = true

4、然后在tsconfig.json文件把"sourceMap": false改成"sourceMap": true

5、可以新建一个demo文件,里面放上demo.html

6、yarn dev 
会生成相应的dist文件

7、yarn serve

可以生成地址,并进行相应的调试了

http://localhost:5000/demo/demo

posted @ 2021-11-03 11:26  攀登高山  阅读(365)  评论(0编辑  收藏  举报