-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
🐛 srcset not working for source-element #987
Comments
parcel/src/assets/HTMLAsset.js Lines 84 to 93 in 0dc062f
|
I noticed this was merged to master so I installed the updated version from github. For me the source-element is still not processed. Am I missing something? |
🐛 Same issue with parcel-bundler version 1.6.2, node@9.8.0. |
Hey, sorry! @VladimirVaivada @mdings , I'll look into it soon, meanwhile could you check if this test file is testing the correct thing here? |
Okay... just tested it out and it's working for me. Note that my change was not released in 1.6.2, you need to run a local version of parcel to try it out. Here describes several ways to do that. One way to do that is,
Now when you run |
😊 My Bad!!! Sorry ))) Did not check if your commit is in current release. |
@gnijuohz I think so yes. I updated the npm package through the github repo by running Now I tried updating the dependencies using yarn, as you are describing above. Still no luck though, but I am guessing at this point this must be something on my side. The integration test-file for one looks good to me. I'll just wait for the fix to be published to npm and then try updating again. |
Hi @mdings I suspect you are somehow still running the version of Can you check out this example repo? Run To use cli instead of API, run |
Related to this issue: #720. I'm opening a new one since the other has been closed already.
srcset
is still nog working for source-elementExpected behaviour
The asset from the srcset-attribute inside the source-tag is processed by parcel and is rewritten to the hashed path
Current behaviour
The srcset-attribute is left alone.
Code sample
compiles to:
The text was updated successfully, but these errors were encountered: