luigi with vite #3653
-
I have a large monolith project that uses Vite (with MUI, react-admin, typescript....) and I would like to transform it into a microfront-end. Is there any guide for using Luigi with Vite? And more examples of using the container? I'm working on a complex example of use with Luigi here https://github.com/lukascivil/luigi-microfrontend. My study aims to validate this tool for implementation in the company I work for. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Second question, taking advantage of the momentum. Do you plan to support typescript in the core package? It would be of enormous value as it would catch errors before compilation and improve devx. |
Beta Was this translation helpful? Give feedback.
-
Third question, where can I find an example of use with |
Beta Was this translation helpful? Give feedback.
-
Hi @lukascivil ,
There is no specific guide on using Luigi with Vite. Whether you are using Webpack or Vite or any other build tools, you would deal with it as you do with other npm packages too. Is there a specific thing that you found difficult in using Luigi with Vite ?
Luigi Container is a relatively new addition to our set of packages. It is still growing and we are continuously working to add and improve its documentation. We will surely add more simple examples of using the container to help people get a quick start into it. Thanks for pointing this out.
Typescript support for core package has been delayed due to other issues at hand, but it is certainly in our goals and we definitely plan to support it in the future.
We will be adding more get-started examples regarding this. Thanks again for pointing it out.
Attributes that you can pass to / can be found in the documentation links here: Since we have added Typescript support for Luigi Container you can already make use of it by programmatically building your luigi container.
This is actually due to the Boolean attribute properties for HTML elements which apply to our luigi-container as well. In that case any value you set would be taken as true by convention and not setting the attribute would be a false. If you are using a viewURL that is not a webcomponent JS file it would expect the webcomponent value to not be set in this case. This has been misleading for developers and we will definitely try to document that properly and make it more intuitive. Hope this helps with getting started. If there are any other questions let us know :) |
Beta Was this translation helpful? Give feedback.
Hi @lukascivil ,
Thanks for the questions.
There is no specific guide on using Luigi with Vite. Whether you are using Webpack or Vite or any other build tools, you would deal with it as you do with other npm packages too. Is there a specific thing that you found difficult in using Luigi with Vite ?
Luigi Container is a relatively new addition to our set of packages. It is still growing and we are continuously working to add and improve its documentation. We will surely add more simple examples of using the container to help people get a quick start into it. Thanks for pointing this out.