I have deployed a library and webpart in sharepoint and later I updated the library and deployed it again then I have noticed the code in the previous version library is getting executed.
I have also noticed the library component was not included in the script resources property of webpart manifest which was generated after gulp bundle --ship