Ionic new project templates

Hi, just wanted to check if anyone is having the same problem as me. The templates on official repo on git has templates for base projects and all of them has index.tsx files where you of course render the app. All of the tutorials and import information related to PWA elements for instance is relaying on adding this to index.tsx in order to display the camera for example:

import { defineCustomElements } from ‘@ionic/pwa-elements/loader’;

the problem is that the ionic CLI commands to create a new project now provides the template that doesen’t use the index.tsx anymore replacing it with main.tsx. Where using the same approach by adding the import and running defineCustomElements(window); after render dosen’t work anymore. Wondering what would be solution to make PWA elements work with new projects. Since all of the tutorials and information is not updated on that part.