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: Issue when minifying firebase - works without #744

Closed
naturedamends opened this issue Sep 12, 2024 · 1 comment
Closed

js: Issue when minifying firebase - works without #744

naturedamends opened this issue Sep 12, 2024 · 1 comment

Comments

@naturedamends
Copy link

naturedamends commented Sep 12, 2024

I may be a dumb grug. idk

"internal-error");const o=typeof s.firebase=="object"?s.firebase:void 0,r=o?..sign_in_provider;return{claims:s,token:a,authTime:I(He(s.auth_time)),issuedAtTim
0,r=o?..s
       ^

This is the minified output. I have no idea what the issue is. Just tried using minify.

login.min.js:1602 Uncaught SyntaxError: Unexpected token '.' (at login.min.js:1602:54888)

I'm using gohugo. and its just a standard firebase project.

    "hugo-extended": "0.133.0",
 ...
  "dependencies": {
    "@sentry/browser": "^8.9.2",
    "firebase": "^10.12.3",
@tdewolff
Copy link
Owner

This should be fixed in v2.21.1

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