mercredi 22 avril 2020

Ember build and sourcemaps

My Ember 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 to debug…Instead I want to be able to open the individual source modules/files written in ES6 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/host app have any impact on the generated source map OR is the child engine configuration for sourcemap totally independent of the parent config ?




Aucun commentaire:

Enregistrer un commentaire