My Angular application was originally created using the default method with ng new project-name"
. However, for performance reasons, I had to incorporate single standard WebComponents. The JavaScript code associated with these components is stored in a folder named "web-components" within the app directory. Everything is functioning well - I am able to access the pure WebComponents from Angular components and ng build
automatically updates the Angular app whenever there are changes in the WebComponent's JavaScript files.
To enhance the development process, I am now looking to convert the non-Angular WebComponents into Typescript. This would mean that the WebComponent's Typescript code needs to be automatically translated to JavaScript within the Angular project. Unfortunately, I have been unsuccessful in finding a way to achieve this within an Angular project. Therefore, I am open to any suggestions on how to configure the Angular project so that this translation can be done seamlessly.