huozhi / bunchee

Zero config bundler for ECMAScript and TypeScript packages
https://npmjs.com/bunchee
861 stars 28 forks source link

How can I build umd output? #486

Closed suhaotian closed 3 months ago

suhaotian commented 3 months ago

I want add umd format support for: https://github.com/suhaotian/xior It has plugins need support umd too, But I didn't found it on the README.

huozhi commented 3 months ago

You can use --format umd or -f umd as cli arguments to generate the umd bundle.

It doesn't support it as exports convention

suhaotian commented 3 months ago

Thank you for reply, I think I'm going just use webpack to do umd output stuff 😃

BTW, I love bunchee as my package bundle tool