Loading video...

Video Failed to Load

Go Home

🧵 So you think you know Barrel Files

130,001 views • 1 year ago •via X (Twitter)

11 Comments

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #1: Dead code

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #2: Reduced clarity

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #3: Accidental import cycles

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #4: Infrastructure strain

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #5: Testing code shipped to production

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Problem #6: "Bin Files"

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

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

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

A magical debarrel plugin appears

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Tweak your tree shaking configuration (maybe)

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

Honestly, just delete the barrel files.

Jason Miller 🦊⚛'s profile picture
Jason Miller 🦊⚛1 year ago

full talk here:

Related Videos