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

enable swcMinify compression exception { toString, fromString } => {fromString} #66378

Closed
noyobo opened this issue May 30, 2024 · 2 comments · Fixed by vercel/turborepo#8272
Closed
Assignees
Labels
bug Issue was opened via the bug report template. locked

Comments

@noyobo
Copy link

noyobo commented May 30, 2024

Link to the code that reproduces this issue

codesandbox

To Reproduce

  1. npm install
  2. npm run build
image

nu={fromString:tR,concat:tT} toString method is gone

sourceCode: https://github.com/decentralized-identity/did-jwt/blob/8b2023c21a639b5e8d5236597dc1d7c330bb5ae0/src/util.ts#L10

Current vs. Expected behavior

sourceCode: https://github.com/decentralized-identity/did-jwt/blob/8b2023c21a639b5e8d5236597dc1d7c330bb5ae0/src/util.ts#L10 enable swcMinify next build output nu={fromString:tR,concat:tT}

disable swcMinify output is right

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 14.3.0-canary.67 // There is a newer canary version (15.0.0-canary.1) available, please upgrade! 
  eslint-config-next: N/A
  react: 19.0.0-beta-04b058868c-20240508
  react-dom: 19.0.0-beta-04b058868c-20240508
  typescript: 5.0.4
Next.js Config:
  output: N/A
 ⚠ There is a newer canary version (15.0.0-canary.1) available, please upgrade! 
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

@noyobo noyobo added the bug Issue was opened via the bug report template. label May 30, 2024
@noyobo
Copy link
Author

noyobo commented May 31, 2024

@kdy1 Do you know what happened?

Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants