pnpm shamefully-hoist 设置
shamefully-hoist https://pnpm.io/npmrc#shamefully-hoist
默认情况下,pnpm 会创建一个半严格的 node_modules 结构,意味着依赖项可以访问未声明的依赖项,但 node_modules 之外的模块不能…
如何在本地环境运行 react 源码仓库
fork 官方仓库 facebook/react 通常开源的项目里都有一个 CONTRIBUTING.md 文件,来让其他的开发者知道如何贡献这个项目,或者看这个项目的 .github/workflows 里的一些运行测试、发布的 action 都可以找到运行这个项目的有效信息…
preload and prefetch
preload <link rel="preload"> is used to preload resources that are needed for the current page, and it is loaded before the browser parses…
MDX 测试
info Copy
import React from "react";
export default function App() {
return <div>hi</div>;
}
Copy
console.log(112);
Copy
console.log…
windows git set eol to lf
原因 在写 Debbl/eslint-config 的测试时
Copy
await Promise.all(
files.map(async (file) => {
let content = await fs.readFile(join(target, file),…