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

Vite compatibility #10

Closed
aerotoad opened this issue Feb 7, 2023 · 2 comments
Closed

Vite compatibility #10

aerotoad opened this issue Feb 7, 2023 · 2 comments

Comments

@aerotoad
Copy link
Collaborator

aerotoad commented Feb 7, 2023

The current system is using Vite for building the library and Parcel for serving examples during development.
The Xeito CLI creates a new application using only Parcel configured to use TSC by default.

Testing and exploration of different vite configurations to create a standalone application always result in different features not working as intended.

Most of the time this is due to the lack of support for typescript experimental decorators and even using Babel things get really messy really fast.

Creating this issue to keep track of it since the new TC39 decorator proposal might arrive at esbuild (feature request) in the near future and this could open the door for vite compatibility.

@aerotoad aerotoad changed the title Vite compatibility Esbuild (vite) compatibility Feb 7, 2023
@aerotoad aerotoad changed the title Esbuild (vite) compatibility Vite compatibility Feb 7, 2023
@aerotoad
Copy link
Collaborator Author

It should be possible to create a vite plugin to use the ts compiler before esbuild.

@aerotoad
Copy link
Collaborator Author

It's now possible to create a Xeito application with vite by using @xeito/vite-plugin-xeito

Link to the repo: https://github.com/xeitojs/vite-plugin-xeito

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