Enable sourcemaps within the admin codebase for plugin development

System Information
  • Strapi Version: 4.12.0
  • Operating System: Ubuntu
  • Database: sqlite
  • Node Version: 18.15.0
  • NPM Version: 9.5.0
  • Yarn Version: n/a

Hello, I am in the process of creating a plugin for the admin dashboard within my Strapi project. During the development process I am trying to debug some code but Webpack outputs a minified bundle so I am wanting to enable source maps to make debugging easier.

I’ve tried to use the STRAPI_ENFORCE_SOURCEMAPS variable inside of .env but so far no luck. After adding the above I have tried npm run build followed by npm run develop.

Are there any additional steps required to get source maps working?