typescript-declaration-webpack-plugin icon indicating copy to clipboard operation
typescript-declaration-webpack-plugin copied to clipboard

Babel as Compiler

Open Apidcloud opened this issue 6 years ago • 1 comments

Hello!

I have been looking for something like this, as I am bundling a library into a single file. the thing is that Im using Babel for transpiling instead, and generating the types with tsc. That said, would it be possible to use this plugin nonetheless? I also use webpack, but like I said, I'm using babel-loader, not ts-loader, so when it runs, it doesn't have the types.

Guess it would work if I generate them before the build though.

Thank you!

Apidcloud avatar Mar 04 '19 19:03 Apidcloud

Ah it seems this plugin only works for the assets that are generated during the build itself, so generating them first doesn't really do the trick.

Any suggestion?

Apidcloud avatar Mar 16 '19 04:03 Apidcloud