unbuild icon indicating copy to clipboard operation
unbuild copied to clipboard

How to support es5

Open tangyuhui opened this issue 2 years ago • 3 comments

Describe the feature

How to combine babel to support typescript files to generate es5 files. For example ?? The syntax is converted to es5

Additional information

  • [ ] Would you be willing to help implement this feature?

tangyuhui avatar Dec 20 '23 13:12 tangyuhui

It's seem not the main missions of unbuild 👀

peterroe avatar Dec 20 '23 15:12 peterroe

I can transpile to ES5 using tsc, but it seems not to work with unbuild.

tangyuhui avatar Dec 20 '23 15:12 tangyuhui

I agree with @peterroe , since unbuild uses esbuild and esbuild does not support es5, at least not out of the box 🤔 .

If you don't need to handle .Vue files, you could probably try something like tsup which should support es5.

dwightjack avatar Jan 06 '24 12:01 dwightjack