Skip to content

huyingx/react18.2-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react18.2源码调试环境

生成sourceMap,使用vite在开发环境调试react。

Usage

  1. 项目根目录安装 react 依赖
yarn
  1. 构建react
yarn build-debug
  1. 进入 vite-debug 目录安装依赖,启动服务开始调试
cd ./vite-debug
pnpm i
pnpm dev

react18.2源码

Q&A

react依赖安装问题

node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js && node ./scripts/yarn/downloadReactIsForPrettyFormat.js
TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"

删除终端代理配置,重试即可。

About

生成sourceMap调试react18.2源码

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published