Production build for browser - unexpected behavior

Hello, I’m having some trouble with “ionic build browser --prod” command. The build completes without any errors, but the functionality is not the same. I have implemented drag and drop using [style.transform] directive in one of the pages and it seems to skip the part when it promotes changes to the DOM. There are more similar issues. Using “ionic serve” is fine.

In files below you can find exports from Google DevTools timeline. I was doing the exact same thing when recording these and yet they differ so much.

Thanks for help!

ionic serve timeline export
ionic build browser --prod timeline export

Ionic info:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
OS: Windows 10
Node Version: v6.9.4

1 Like

I have similar issue. I using some module requires drag and drop such as ngx-color-picker and ng-pick-datetime. It functions normally when using “ionic serve”, but it doesn’t work when build or run browser. It cannot drag the control to do selection.