twilio-professional-services/flex-project-template

No source map files when running locally

thedimestar opened this issue · 3 comments

I have forked the template and added a new custom feature but apart from that have made no changes to the template

tsconfig.json contains "sourceMap":true

"npm run start" works fine and the plugins can be run locally

however no source map files for the plugin and its features are generated

Screenshot 2024-01-15 at 4 26 15 pm

Hi @thedimestar! For a working source map, please try adding this to your webpack.config.js before the return statement:

if (isDev) {
  config.devtool = 'inline-source-map';
}

Please let me know how this works for you. I'll get a PR up for this as well.

Fixed in #474