my-file.ts depends on 'country-state-city'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
I suggest that you have a ES version as well since at the moment the generated js will include Cities even though I only import Countries and States:
import { Country, State } from "country-state-city";
When building with Angular you get this warnings:
I suggest that you have a ES version as well since at the moment the generated js will include Cities even though I only import Countries and States: