-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix bundler #1
Comments
@colgin You can pull this code and run! I tried and still not work 😅 |
Hi, there, rollup-plugin-typescript2 doesn't work well with pnpm, issue. |
Oh ... Thank you so much <3! LOL I don't think it's issue of pnpm :( |
Btw, can I ask you a question? How do you know this is the problem with the plugin order of Vite? |
It depends on how vite process the input accroding your configuration. So I guess plugins in rollupOptions only applied to some processed files(.vue files was translated to normal .js file without any type), after that, I spend some time to figure out if there is a way to apply tsPlugin to original file, including read the source code and doc. Vite plugin extends rollup's plugin interface, according the doc, plugin specified enfore as 'pre' will be applied before plugin without enfore value. btw, I don’t know if this solution will bring any side effects, in my current opinion, it is good |
Remove the plugins in rollupOptions, and declare it as a "vitePlugin", it works.
The text was updated successfully, but these errors were encountered: