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

[Question] Vite support #87

Open
pablolazaro opened this issue Mar 30, 2023 · 3 comments
Open

[Question] Vite support #87

pablolazaro opened this issue Mar 30, 2023 · 3 comments
Labels
question Further information is requested

Comments

@pablolazaro
Copy link

pablolazaro commented Mar 30, 2023

Hi everyone,

First of all, thanks for the effort of building this library!

I'm looking forward to use it on a Vue project and I was wondering if anyone have some experience using it with a project powered by Vite. I know Vite uses esbuild behind the scenes and given that is not compatible with TypeScript transformers I have to switch to Rollup but, I haven't achieved to make it work properly.

Have any of you a good example of how to use it with Vite?

Thanks in advance!

@pablolazaro pablolazaro added the question Further information is requested label Mar 30, 2023
@lsarrazi
Copy link

lsarrazi commented Jun 9, 2023

Up !

@Hookyns
Copy link
Owner

Hookyns commented Jun 9, 2023

Hi, sorry idk how I missed this.

Neither Vite (esbuild) nor SWC are supported. I have a plan how to make it work, but it's a lot of work; alpha planned for 2024.

Rollup is TypeScript but it transpiles code in a different way so no full support is possible in current state and I didn't test it for a year so idk if it is still at least partly working. Last version of webpack and/or ts-loader seems to work similar to Rollup which means it is quite broken too. Things have been changing fast lately.

I work on new version (see #78) , but because of all those changes I think I will switch to that whole new version which should get all the build and bundle tools working and it will be almost independent so it should be more durable.

@Hookyns
Copy link
Owner

Hookyns commented Jul 7, 2023

I have officially started working on a new version which will make support of esbuild/Vite, SWC etc. possible. Each build system will require its own plugin but it'll be thin; all the hard work is gonna be done by main TS process.

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

No branches or pull requests

3 participants