DEV Community

Discussion on: Optional Chaining Has Arrived!

Collapse
 
devusman profile image
Usman Suleiman

I read somewhere that it could increase bundle size. How true is that?

Collapse
 
laurieontech profile image
Laurie

bundle size of node? Or the project that implements it?

Collapse
 
devusman profile image
Usman Suleiman

The project that implements it.

Thread Thread
 
laurieontech profile image
Laurie

It’s not really been in the wild enough to know. My suspicion is it isn’t a problem if you’re using it as a replacement for existence checks would have anyway. If you put it everywhere then yes, because the implementation is more complex than just accessing things.