unjs / unbuild

📦 A unified JavaScript build system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to support es5

tangyuhui opened this issue · 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?
commented

It's seem not the main missions of unbuild 👀

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

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.