Custom change disappeared on build but not on ionic serve

I made my own custom change to the AlertController, when using a select i added a searchbar. It works fine when I just run ionic serve but when i run ionic build, the change disappeared.

I modified this file: node/modules/ionic-angular/components/alert/alert-component.js.,

I guess that when building it uses some other file. Anyone who has a clue?