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
[Feature Request] - Support to use/add Vite loader plugins (e.g. for web assembly) #1721
Comments
Hi @pgfeller, thanks for such an elaborate feature request! |
Thanks for the reply. Yes - that answer my most important question: that this is the right place 🙂. Thank you for your offer to help.
I'll create a prove of concept to see if we can achieve the functionality we need. If this works and we go for Angular 17 I'll get back to you if that issue can be assigned to me and I finalize the poc to a PR that could be included into this loaders feature set. with kind regards, |
➡️ Discussed possible approach to add vite plugin support to the project (created POC) - see also Angular Builders - Slack #Help Creating a poc to support vite plugin configuration files was only possible by modifying the default builder by For our use case (support of a library directly including
Using the @just-jeb agreed, that atm webpack is the better option for us and to provide a clean implementation for vite plugins in this project does not make sense without adjustments in
|
I would also have interest in a I am developing a Vite Plugin which devs need to activate if they want to use my library in their projects. To use my library in an Angular Project using Vite they need a way to inject their own config and add my plugin there. As far I could see Angular mainly uses Vite in the dev-server For normal app building they seem use only ESBuild directly. Hence supporting Vite for building is likely more effort. Hoping to see this feature at some point. |
We're considering Angular 17 for one of our projects and would like to leverage the benefits of the new es-build and vite support. As the the vanilla builders of the Angular projects do not support configuration of es-build nor vite they do not serve our purpose - as we have dependency that e.g. load web assemblies according to the proposed ESM standard, that is not supported by vite by default.
As this project supports the use of es-build plugins and to add vite middleware we consider if support for vite plugins could be added to the code as well. For this I forked the code to have a closer look to get a better idea ...
Do you think this is the right project to add vite plugin support ❓
I created a fork to see what the current state is and to create a prove of concept - but unfortunately have some problems. Is there a forum - or can such problems be discussed in the request as well? When I try to run
yarn build:packages
I get some errors and subsequently can not run thesanity-esbuild-app
exampled:📝2024-03-18: ✔️ updating/sync with latest code solved the build problem - details kept for reference
Detailed information about build the problem
➡️ We would like to know if this is the right place to add support for the vite plugins, and if yes - we'll evaluate further and contribute the result to the project. But for this we would need help to build the current example apps - as we did not use
yarn
in amonorepository
we need some support here.The alternatives we considered are:
wasm
to load the asset dynamically; but the limitations of the Angular builders will remain and we want the flexibility to configure the builders and dev-server in case thinks come our way that are not in thevanilla
vite implementationnx
build system - we did not investigate this in depth, but this projects seems to use their own builders. But we do not want to introducenx
, as we would like to keep the number of used libraries and different technologies to the minimum.Feedback is highly appreciated!
Let me know if this is the wrong place for discussions or to ask for help - as atm it is a feature request including a request for advice/support ...
The text was updated successfully, but these errors were encountered: