Skip to content

Added inlineRequires handling for srcset #188

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmousawy
Copy link

Fixes issue with inlineRequires feature not able to handle srcset resources because of different syntax.

Fixes #148.


if (match.indexOf(',') > -1) {
// Handle srcset
const srcset = match.split(',');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parsing error: The keyword 'const' is reserved

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint defaults to ES5 syntax-checking. You'll want to override to the latest well-supported version of JavaScript. If that's not possible, I will switch back to ES5 syntax.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.4%) to 85.714% when pulling d65ac2d on mmousawy:master into 9df1092 on pcardune:master.

@pcardune pcardune force-pushed the main branch 2 times, most recently from 384113d to a4f23d1 Compare May 20, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to handle srcset attributes?
3 participants