Загрузка видео...

Не удалось загрузить видео

На главную

Honestly, just delete the barrel files.

13,281 просмотров • 1 год назад •via X (Twitter)

Комментарии: 14

Фото профиля Jason Miller 🦊⚛
Jason Miller 🦊⚛1 год назад

🧵 So you think you know Barrel Files

Фото профиля 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 год назад

full talk here:

Фото профиля Michael Dougall
Michael Dougall1 год назад

@flexdinesh 4r. Shopify sending it for no barrel? Atlassian started migrating Jira recently, huge improvements across the board

Фото профиля Anton Korzunov
Anton Korzunov1 год назад

We just did that Rewrote all imports directly to what they need and deleted thousands of barrel files It helped not only with bundling, but boosted tests and even typescript

Фото профиля Jason Miller 🦊⚛
Jason Miller 🦊⚛1 год назад

Yeah the impact on jest and TS are big.

Похожие видео