Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support es5 #349

Open
1 task
tangyuhui opened this issue Dec 20, 2023 · 3 comments
Open
1 task

How to support es5 #349

tangyuhui opened this issue Dec 20, 2023 · 3 comments

Comments

@tangyuhui
Copy link

tangyuhui commented Dec 20, 2023

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?
@peterroe
Copy link
Contributor

peterroe commented Dec 20, 2023

It's seem not the main missions of unbuild 👀

@tangyuhui
Copy link
Author

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

@dwightjack
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants