正在加载视频...
视频加载失败
🧵 So you think you know Barrel Files
11 条评论

Jason Miller 🦊⚛1 年前
Problem #1: Dead code

Jason Miller 🦊⚛1 年前
Problem #2: Reduced clarity

Jason Miller 🦊⚛1 年前
Problem #3: Accidental import cycles

Jason Miller 🦊⚛1 年前
Problem #4: Infrastructure strain

Jason Miller 🦊⚛1 年前
Problem #5: Testing code shipped to production

Jason Miller 🦊⚛1 年前
Problem #6: "Bin Files"

Jason Miller 🦊⚛1 年前
Some solutions! To start... can linting help?

Jason Miller 🦊⚛1 年前
A magical debarrel plugin appears

Jason Miller 🦊⚛1 年前
Tweak your tree shaking configuration (maybe)

Jason Miller 🦊⚛1 年前
Honestly, just delete the barrel files.

Jason Miller 🦊⚛1 年前
full talk here:

