Ember build and sourcemaps

My app is actually a child engine. Recently, I observed that the source maps are not working properly in Chrome. So, I have to open the generated engine.js…But I want to be able to open the individual source modules/files using Ctrl + P in Chrome Sources and add breakpoints to debug.

I tried both the ways in ember-cli-build.js;

babel: { sourceMaps: ‘inline’ }

sourcemaps: { enabled: true, extensions: [‘js’] }

My question is am I doing something wrong with the above? Does the parent app have any impact on the generated source map OR is the child engine configuration for sourcemap totally independent of the parent config ?

1 Like

I’ve been having this problem for awhile now. I usually have to turn sourcemaps off if I want to debug in the browser for any of my code.