egoist / tsup

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

passing options to postcss #1138

Open abdelrhman-adel opened 3 weeks ago

abdelrhman-adel commented 3 weeks ago

I'm building a dynamic postcss config and it requires getting the Tsup options, problem is the way postcss-load-config is being used now is that we pass and empty object as the context param

          const result = await loadConfig({}, process.cwd())

I would like to pass the options further, giving postcss the ability to utilize them , for now I need entryPoints option. but would be nice to standardise it.

Upvote & Fund

Fund with Polar

abdelrhman-adel commented 3 weeks ago

created a PR for it https://github.com/egoist/tsup/pull/1139

abdelrhman-adel commented 1 week ago

@egoist could you please take a look? thanks.