To create a SharePoint SPFx (SharePoint Framework) package, you will need to package the Solution. Once you are satisfied with the development and testing, you can package the solution for deployment to SharePoint. Please run the following command to create a production-ready package:
gulp bundle --ship
gulp package-solution --ship
Here is the document for more details
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.