io-ts
io-ts copied to clipboard
import best practices
What is the current way for tree shakable imports? Will import * as t from 'io-ts' still be tree shakable with webpack 5?
My understanding is that star imports are fine for tree shaking. In other words, only the exported items you actually use from the star-imported module will be kept and the rest will be removed, as one would hope.