digested source maps
firien opened this issue · 4 comments
firien commented
recently stumbled into this project while attempting a rails 7 update. I am using the predigested ".digested" method because my js files need to reference themselves, and am having 2 issues with the source maps.
- The
sourceMappingURL
is being striped away: (quick and dirty solution in dev mode is to callconfig.assets.compilers.pop
to removePropshaft::Compilers::SourceMappingUrls
) - Also the source maps will not be served without tweaking
extract_path_and_digest
- firien/propshaft@3903815...ed67507
brenogazzola commented
brenogazzola commented
It cleaned up some internal code and added a useful feature, which is why I’m holding back on reverting it. Still hoping we can find something that will satisfy all the use cases.
Fortunately Propshaft will only replace Sprockets as the default on Rails 8, so there’s time.
firien commented
https://github.com/firien/propshaft/tree/esbuild has fixes and tests for 2 issues mentioned above