-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source-map refresh question #344
Comments
Seems that something with cache. |
So here screenshot and repo with reproduce: |
I will try to debug and fix it (I hope, that I can find a solution or point to the root cause) |
@Strech |
@merqlove I've succeeded with reproducible failure in tests. Hopefully, I will nail this issue 😲 |
Closes rails#344 Add processed source file dependencies to the source map. This asset call `@env['application.js.map']` will add compiled `application.js` dependencies with all derectives to the `application.js.map` asset
Thanks for this repro case, it made verifying the fix way easier. Thank you all for your detailed bug report and for fix. |
Thanks! Seems it works. Tested on staging project. |
How to setup it right for guaranteed source-map refresh?
Currently i have new branch of Rails 4.2 with Sprockets 4.0 beta2.
TL;DR
Repo with reproduce:
https://github.com/merqlove/sprockets4-source-map-bug
Added manifest file with source like this:
Also i have root
coffeescript
file:And web folder index file:
First time SourceMap processor generates right version of the map.
But, if i did some changes in the content, for example its child file with
coffeescript
source in./broadcasts
, content ofapplication....js
is changing, for example i'm addedconsole('LALALA')
but SourceMap not refreshing, always same source-map file with same fingerprint.4 times i've looks to the end of
application....js
, and 4 times i found:Same picture also i've seen with
master
branch of current repo.The text was updated successfully, but these errors were encountered: