When I build my solution, minified JS files have my old lines. Here are my steps:
1 - gulp clean 2 - gulp build 3 - gulp bundle 4 - gulp package-solution --ship
file under \dist\test-web-part.js file under \sharepoint\solution\debug\ClientSideAssets\test-web-part_7b75e81b5de1ea7a45c0575c9bfcde29.js
They both get updated with my old code. I delete these files and they re-created with the old code again. I see old console.log lines in the minified js.
I do not have much experience in SPFX development. Any help would be much appreciated.