-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Unable to install @gltf-transform/functions
in deno
#1092
Comments
Related:
It seems like this "should" work, but the error is two levels down in the dependencies. Do you know if Deno supports tree-shaking? Or what version of Deno you're using? I'm not sure I understand why it would be importing The only solutions I see at the moment would be:
As a workaround you could also copy/paste the bits of https://github.com/donmccurdy/glTF-Transform/blob/main/packages/functions/src/quantize.ts |
Tree shaking is added to deno in v1.5. I'll copy/paste the |
Fixing sharp in deno: |
I think upcoming Sharp versions will fix this, but in any case let's track general support for the Deno runtime in #457. |
Describe the bug
Cannot import/install
@gltf-transform/functions
To Reproduce
Open deno REPL and import something from
@gltf-transform/functions
.Versions:
Additional context
It appears to be sharp isn't built correctly: https://esm.sh/v132/[email protected]/denonext/sharp.mjs
The text was updated successfully, but these errors were encountered: