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

feat: Update file-type to the latest version to avoid build errors caused by using eval in the old version. #1361

Open
rxliuli opened this issue Nov 21, 2024 · 0 comments · May be fixed by #1362

Comments

@rxliuli
Copy link

rxliuli commented Nov 21, 2024

Is your feature request related to a problem? Please describe.

When building a project with Vite, this error warning always appears.
image

Describe the solution you'd like
Upgrade to [email protected]

Describe alternatives you've considered
The local testing results using pnpm overrides + patch are good.

package.json

{
  "pnpm": {
    "overrides": {
      "file-type": "^19.6.0"
    }
  }
}

@jimp/core/es/utils/image-bitmap.js

image

Additional context
Add any other context or screenshots about the feature request here.


Update, since [email protected] is clearly esm only, and tshy does not support the feature of dynamic imports, for example, the same import has different bundles under different formats, which is very annoying...

isaacs/tshy#50

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

Successfully merging a pull request may close this issue.

1 participant