Is there a way to prepend a path to source maps?
I am deploying my app within an app subfolder on s3 using ember-cli-deploy.
I have set fingerprint.prepend to include the full domain including the /app prefix. This is necessary because the fastboot server is running on the TLD, while the static content from s3 is served from a static. subdomain.
When I look at the source map files, I can see an entry like this: sources":["assets/chunk.94.a2c2096e5ba049dd8909.js"]. Apparently the content in the source map does not contain the app prefix. I currently suspect this is the issue why source maps do not work when deployed, while they work fine if I test a production build locally.
Is there a way to include a prefix to the pathes that are written to the source maps?
Same issue after having upgraded to Ember 3.28/4 - I now have relative paths for the sourcemaps where it used to be absolute paths.
Same thing here! Did you find a workaround for that issue?
@rreckonerr My case might a bit special, since we do not publish source maps, but upload them to rollbar for debugging. Rollbar has an option to prepend that path. However, most issues we were seeing are actually caused by a regression with ember-cli-terser, which breaks source maps altogether. We needed to pin that to version 4.0.1. This PR has more information: https://github.com/ember-cli/ember-cli-terser/pull/298