- 🇺🇸United States xjm
This was already added to the 10.1.0 release notes draft.
- 🇫🇷France andypost
there's follow-up 📌 Update mck89/peast composer dependency to 1.15.2 Fixed
- 🇳🇮Nicaragua edysmp Nicaragua
example JS code:
```
if (true) {
const CMS = 'Drupal';
}
```
Peast parses to: `if (true) const CMS = 'Drupal';` which is: `SyntaxError: Unexpected token 'const'`contrib code affected https://git.drupalcode.org/project/glightbox/-/blob/1.0.x/js/glightbox.j...
- 🇬🇧United Kingdom longwave UK
@edysmp can you raise that at https://github.com/mck89/peast/issues? The Peast maintainer does not monitor this issue as far as I am aware.
- 🇳🇮Nicaragua edysmp Nicaragua
@longwave Thanks for taking a look. Post the issue in Peast project: https://github.com/mck89/peast/issues/60
- 🇳🇮Nicaragua edysmp Nicaragua
FYI contrib module affected mentioned in #102 is no longer an issue. Fixed by https://www.drupal.org/project/glightbox/issues/3378356#comment-15174019 ✨ Drupal 10.1 compatibility Fixed
- 🇬🇧United Kingdom longwave UK
@edysmp the Peast maintainer has fixed this bug and released a new version: https://github.com/mck89/peast/releases/tag/v1.15.3
Thanks for raising it!
- 🇳🇮Nicaragua edysmp Nicaragua
@longwave Great! So, next is to update Peast here? Worth a follow-up at this moment?
- 🇩🇪Germany Anybody Porta Westfalica
Sorry to comment on this fixed issue, but I hope we can get a short information here, if this needs a follow-up issue.
In COOKiES (for GDPR) we need to disable preprocessing (
preprocess: false
) because the JS files may not be aggregated to be able to block them.
But settingpreprocess: false
has the side-effect that the resulting JS wll also not be minified, while it would be totally okay aka "good" to have it minified.So I think it may need a more granular separation of "preprocess" / "aggregate" / "minified" to be able to solve such cases?