You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really. Angular has too much of its own build specific configs.
Reacted by Stewan Silva, Andrii Oriekhov, Yaroslav Yakovlev, Serdar Sayin, Canux, Yassine Rassy, Maxim Kotelnikov, kevin chang, Simon Reinisch, Sri and 2 more
@xiaoxiangmoe can you update the readme to explain about the workaround. Just a high level description about your change. I see your are using vite serve with ngc command concurrently from the commits. why we need
As you can see, reason-react use bsb -make-world -clean-world -w in serve mode. And we should alse use ngc --watch in vite now. If ngc to provide single file compilation API, we can just wrap it as a vite plugin.
Activity
yyx990803 commentedon Jul 15, 2020
Not really. Angular has too much of its own build specific configs.
xiaoxiangmoe commentedon Aug 23, 2020
@webxmsj @yyx990803 It seems that this is a feasible thing. But perfect implementation requires ngc to provide single file compilation API.
sozakir commentedon Feb 1, 2021
@xiaoxiangmoe can we chat regarding vite in angular. Is there any workaround for using vite with angular and what would be the pros and cons?
xiaoxiangmoe commentedon Feb 1, 2021
@sozakir https://github.com/xiaoxiangmoe/vite-ng-app-demo Here is a workaround for Angular in vite.
sozakir commentedon Feb 1, 2021
@xiaoxiangmoe can you update the readme to explain about the workaround. Just a high level description about your change. I see your are using vite serve with ngc command concurrently from the commits. why we need
ngc to provide single file compilation API..xiaoxiangmoe commentedon Feb 13, 2021
Currently angular requires type information to compile ts file to js.
If ngc to provide single file compilation API, we can use ngc as babel plugin or vite plugin.
@sozakir
As you can see, reason-react use
bsb -make-world -clean-world -win serve mode. And we should alse usengc --watchin vite now. If ngc to provide single file compilation API, we can just wrap it as a vite plugin.