Skip to content
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

JS minify failure #449

Closed
jmooring opened this issue Dec 13, 2021 · 2 comments
Closed

JS minify failure #449

jmooring opened this issue Dec 13, 2021 · 2 comments

Comments

@jmooring
Copy link
Contributor

const _\u00bare_unicode_escape_identifier = 42;
console.log(_\u00bare_unicode_escape_identifier);
unexpected \u00bare_unicode_escape_identifier in const declaration on line 1 and column 8
    1: const _\u00bare_unicode_escape_identifier = 42;
              ^

Reference: gohugoio/hugo#9244

@tdewolff
Copy link
Owner

Thanks for the bug report! This bug was recently fixed with tdewolff/parse@3983db1 and is in the master branch here. I'm waiting to bring out a new release due to a large commit for variable renaming and reordering which needs further testing first. Fix will be released ASAP

@tdewolff
Copy link
Owner

Fixed some bugs in 2cb24ef and tdewolff/parse@eca56c8 after testing. Released fix in https://github.com/tdewolff/minify/releases/tag/v2.9.23, please report any bugs!

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

No branches or pull requests

2 participants