jeudi 22 avril 2021

Is it possible to ignore typescript declaration files but to copy them when transpiling with babel?

I'm developing a typescript application and want to transpile it using babel. Before I transpile it I'm using tsc for type checking and generation of typescript declaration files.

The problem is that babel transpiles the .d.ts declaration files to .d.js files because you have to specify "--extensions .ts".

Is there a way to exclude these declaration files from transpilation with babel so that babel simply copies them?




Aucun commentaire:

Enregistrer un commentaire