You need to know what exactly TypeScript is at first. TypeScript is a Transpiler which transpiles JavaScript to use strict type. You may have heard about variable types in PHP language but JavaScript isn't strictly typed language. Obviously, the TypeScript provides the way to code our JavaScript into a strictly typed language. There are others like CoffeeScript, you may just google about Transpilers to know more about this.
So, why we need to use strictly typed language? Then, the answer is many. The key benefits for defining type is to provide the security for the app. When used type, user must provide them in that type. If we have declared a boolean type, this cannot accept the other types if passed into it, it will throw the error.
So, it depends on you how you want your app to be developed taking some security action or losing it. It doesn't matter Webpack or something else.
If you know TypeScript well, you'd obviously consider using it.