You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncovered that you can do object spread in some of our files but not all. In the bad files, compiling gulp browserify-lighthouse in lighthouse-extension/ fails with Unexpected token. Unsure of what triggers the error in some files but not others.
To repro, just put something like const whatever = {a: 5, ...passContext}; in the afterPass of one of the problematic gatherers (like optimized-images.js).
It appears it might be an actual bug, though, and not another parser version that needs to be piped through because you can actually use object spread in some files and not others. e.g. not in optimized-images or accessibility gatherers, but it's fine in the websql or css-usage gatherers. I haven't figured out what the error cases have in common yet or how to fix them.
The text was updated successfully, but these errors were encountered:
So the issue is that insert-module-globals uses lexical-scope which uses astw without options, which forces the usage of ES8/ES2017.
Simplest thing might be to do a local patch of astw since we'd need to fix the chain of lexical-scope, astw, insert-module-globals and publish new versions of each.
Uncovered that you can do object spread in some of our files but not all. In the bad files, compiling
gulp browserify-lighthouse
inlighthouse-extension/
fails withUnexpected token
. Unsure of what triggers the error in some files but not others.To repro, just put something like
const whatever = {a: 5, ...passContext};
in theafterPass
of one of the problematic gatherers (likeoptimized-images.js
).#5129 (comment) for context:
The text was updated successfully, but these errors were encountered: