Skip to content

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