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

Support output of ES5 compatible code #262

Open
ranyitz opened this issue May 19, 2020 · 0 comments
Open

Support output of ES5 compatible code #262

ranyitz opened this issue May 19, 2020 · 0 comments

Comments

@ranyitz
Copy link

ranyitz commented May 19, 2020

Feature Request

Support ES5 compatible output.

Why?

Reduce the build time when trying to run carmi code in the browser (to support old browsers)

Context

As part of our work on Thunderbolt we need to be able to run carmi code in the browser. Some of those browser (Like IE11) are quite old and requires transpilation for ES5.

Our current solution is to run babel on the output of carmi, this task takes a lot of time and raise the build time significantly.

Optional solution

Transpile the templates to ES5 as part of carmi's build and support ES5 mode when those templates will be used instead of the regular ones being used today.

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

1 participant