-
Notifications
You must be signed in to change notification settings - Fork 65
fix: don't extract http:, https:, data: and hash only urls as assets #234
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
Conversation
Interesting that it's not processed in the same way, I will check later... |
📊 Bundle size report🤖 This report was generated against e775fd8c168801f9f914c5a2810375ed498a4cb6 |
I know, the whole CSS block is passed into It may be difficult to correctly parse the block. |
|
Now it also has problem with multiple URLs like The best solution might be to use a CSS parser for semantically parsing the input and handle each rule differently. Considering the complexity, I don't think I will have time to complete that. |
Good call, I will look into it 👀 |
No worries, I created an issue #238 and you can check a fix in #237. Once the fix will be merged I will rebase your changes 😉 |
|
@yume-chan #237 was merged, do you need help with rebasing changes? |
a12e800 to
0c4cb6f
Compare
0c4cb6f to
57ca5ad
Compare
|
@layershifter I have rebased main into my branch and it's ready to be reviewed. Some notes:
|
layershifter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really like how it was simplified, great job ❤️
|
Released in |
Fixes #233
Points to note:
data:URLs are actually extracted as asset imports (not ignored) before this change.http:andhttps:URLs, they should be external resources, not part of module resolution.-webkit-filter:url(packages/babel-preset/__fixtures__/assets/a.svg#a);is still incorrect.