Currently, my method involves using "gulp" to generate the definition file for my bundle in the following way:
dtsGenerator.default({
name: 'ngFramework',
project: './',
out: './Typings/raw/index.d.ts'
});
However, I am in the process of transitioning to webpack and I am looking for a way to achieve the same result. I attempted using the "declaration" flag in the "tsconfig," but it ended up creating a definition file for each individual "ts" file, which is not the desired outcome (I want the definition file for the entire bundle).
Another approach I tried was the "dtsbundler-webpack-plugin," but unfortunately, I could not get it to work as intended. When I omitted the "declaration" flag in the "tsconfig," the generated file was "0 bytes," and when I included it, I encountered numerous errors.