You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! We've noticed that when we set fingerprint: { prepend: '<A CDN URL>' } along with enabling sourcemaps that the sourcemaps generated omit their sourcesContent. sourcesContent is required by many vendors (e.g. Datadog) to be able to map errors to source code.
You will also see error messages like the below in the build output:
[ember-auto-import-webpack][WARN] (broccoli-terser-sourcemap) "https://cdn.example.com/assets/prepend-and-source-maps-reproduction-case-a6ca85fb815e9c9d4493a774123e7524.map" referenced in "assets/prepend-and-source-maps-reproduction-case-5476e7109a10381ba8972949cc3a7698.js" could not be found
[WARN] (broccoli-terser-sourcemap) "https://cdn.example.com/assets/vendor-fc5c123853c1d6b7328607fa957c4a50.map" referenced in "assets/vendor-a92cf527610392e49247560fa49140ef.js" could not be found
[ember-auto-import-webpack][WARN] (broccoli-terser-sourcemap) "https://cdn.example.com/assets/prepend-and-source-maps-reproduction-case-a6ca85fb815e9c9d4493a774123e7524.map" referenced in "assets/prepend-and-source-maps-reproduction-case-5476e7109a10381ba8972949cc3a7698.js" could not be found
[WARN] (broccoli-terser-sourcemap) "https://cdn.example.com/assets/vendor-fc5c123853c1d6b7328607fa957c4a50.map" referenced in "assets/vendor-a92cf527610392e49247560fa49140ef.js" could not be found
Ultimately I think if we could have an option to not prepend the CDN to SourceMappingURL in broccoli-asset-rewrite, that would fix the issue.
Hello! We've noticed that when we set
fingerprint: { prepend: '<A CDN URL>' }
along with enablingsourcemaps
that the sourcemaps generated omit theirsourcesContent
.sourcesContent
is required by many vendors (e.g. Datadog) to be able to map errors to source code.You will also see error messages like the below in the build output:
See the reproduction app here.
To reproduce this issue:
*.map
files underdist/assets/
--> note that there is nosourcesContent
included in the file*.map
files underdist/assets/
--> note thatsourcesContent
is now included in the fileOutput from
ember version --verbose && npm --version && yarn --version
:The text was updated successfully, but these errors were encountered: