Unimported ionic components found in prod builid

Hi there,

I find a strange thing in the prod build report of tutorial-photo-gallery-vue sample. All ionic components used in this sample are registrated as local components, so I think for those unused ionic components, they will NOT included in the build. But when I build the sample with vue-cli-service build --report and open the report.html, I find some unused ionic components (ion-slider, swiper, ion-datetime, etc.):

Is this the right behavior? Or I missed something? Many thanks for any help.

There are a few issues with treeshaking when using Webpack with lazy loading. In Ionic Framework v6 we are moving away from using Stencil lazy loading which should resolve this issue. We will have a beta period soon where developers can test this out.