egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.46k stars 209 forks source link

DTS fails when building library containing scss modules #1112

Open mayank1513 opened 2 months ago

mayank1513 commented 2 months ago

I am creating a turborepo setup for crafting and publishing react libraries. Everything works very well. However, when I turn on dts, it starts throwing errors

error TS6054: File 'C:/..../bars2.module.scss' has an unsupported extension.

Reproduction - clone following code https://github.com/react18-tools/turborepo-template/tree/rewrite

git clone https://github.com/react18-tools/turborepo-template -b rewrite

Install dependencies and build the lib

pnpm i
pnpm build --filter @repo/ui

Upvote & Fund

Fund with Polar