0

I am trying to compile a production build of my Javascript package using webpack 5.

The source code is written in typescript. My current build process is this:

Typescript -> [babel-loader] -> [terser (minify)] -> bundle.js + bundle.js.map

How can I generate the d.ts files so that the final consumer of this package will have correct types when importing the package?

John Doe
  • 13
  • 1

0 Answers0