Evan Burbidge
Jan 20, 2023

--

I too used to use barreling until I noticed that it was inflating my bundle sizes significantly. While it may be messier to import components on at a time we do avoid importing unwanted components which get bundled if you use this approach. Or maybe webpack was just setup wrong :D

How have you found auto importing with aliasing?

Never seen the prettier approach must give it a shot!

--

--

Evan Burbidge
Evan Burbidge

Written by Evan Burbidge

Javascript developer specialising in React, Vue and NodeJS. I like SQL and NoSql depends on the context really!

Responses (1)