all-of-frontend/weekly/第一期.md

39 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 新闻
其实以下几个玩意更新的版本我基本没咋关心,看了眼就过了,反正短期用不到的。
\- [Chrome 91 发布](https://developer.chrome.com/blog/new-in-chrome-91/)
\- [TypeScript 4.3 发布](https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/)
\- [Jest 27 发布](https://jestjs.io/blog/2021/05/25/jest-27)
## 优秀文章
\- [Migrating a 150K LOC codebase to Vite and ESBuild](https://dev.to/noriste/migrating-a-150k-loc-codebase-to-vite-and-esbuild-why-part-1-3-2idj)
一个系列文章,大概讲了讲 15w 行代码从 Webpack 迁移至 Vite 过程中遇到的坑。Vite 这玩意我周末也讲过它的优点但是它的缺点其实我和一些大厂的大佬也聊过以后发现大家遇到的问题几乎一致。环境的问题ESM导致了太多坑的出现接入一个业务需要花的成本是挺高的。大家可以通过这篇文章来了解具体的问题。
\- [跨域的一篇长文](https://ieftimov.com/post/deep-dive-cors-history-how-it-works-best-practices/)
这篇文章我没看什么,但是它写了特别多内容,打算去看看到底写了些啥玩意,如果你也好奇的话可以了解下。
\- [防御型编程](https://github.com/Tencent/secguide/blob/main/JavaScript%E5%AE%89%E5%85%A8%E6%8C%87%E5%8D%97.md)
这玩意前几天推荐过了,大家有兴趣的读一读吧。
## Code
\- [preconstruct](https://github.com/preconstruct/preconstruct)
monorepo 开发构建工具,我更倾向于把它当成源码学习。
\- [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)
一个能帮助寻找及加载各类配置文件的工具。比如说 `package.json` 各种 `rc` 文件等等,工具链产品中寻找配置文件是个很常见的需求。