Hello. In my React/TypeScript panel for PremierePro I am using the SWC library. When I run the panel with UDT, I see the message “Spectrum Web Components is in dev mode. Not recommended for production!” in the Debug console.
I would like to turn off dev mode and use a production mode instead– what configurations/settings do I need to change in order to accomplish this? Thank you.
This is probably depending on the script section of package.json, or webpack.config.js.
When you run wabpack with --mode production, the warning will disappear. When developing with npm run watch without specifying any options, it is normal for the warning to appear.
To release as a product, change npm run build to run with --mode production in advance, and then execute it.