正在加载视频...

视频加载失败

🧵 So you think you know Barrel Files

130,059 次观看 • 1 年前 •via X (Twitter)

11 条评论

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #1: Dead code

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #2: Reduced clarity

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #3: Accidental import cycles

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #4: Infrastructure strain

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #5: Testing code shipped to production

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Problem #6: "Bin Files"

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Some solutions! To start... can linting help?

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

A magical debarrel plugin appears

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Tweak your tree shaking configuration (maybe)

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

Honestly, just delete the barrel files.

Jason Miller 🦊⚛ 的头像
Jason Miller 🦊⚛1 年前

full talk here:

相关视频