Liam Lambert
1 October 2024
Avoiding Vite's Class Field Transformation in JavaScript Projects
It is be difficult to handle class field transformations in Vite, particularly when connecting with systems such as FoundryVTT. These changes frequently don't align with the platform's requirements, which makes initialization incorrect. The original class field behavior can be preserved by using Babel plugins and modifying build configurations. This guarantees seamless communication between external platforms with code developed using Vite.