turbopack equivalent of webpack ProvidePlugin for Buffer? #85794
Unanswered
bitgoAaron
asked this question in
Help
Replies: 0 comments 1 reply
-
|
Hi, this is the repository for Turborepo, not Turbopack, so I'll transfer to the Next.js repo where the Turbopack team is currently operating. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Is there an equivalent way of providing a global override for Buffer, similar to how webpack supports this:
I'm finding that the Buffer used by turbopack is missing a couple key functions, like 'readBigUInt64LE' and others. These are all implemented by the https://www.npmjs.com/package/buffer package for using Buffer in the browser.
I have already tried this:
which seems to include the functions on the Buffer prototype if I manually import that myself, but those functions are not available on transitive dependencies, so I end up with a runtime error
"buffer.readBigUInt64LE is not a function" when used in my application. Any help or pointers would be appreciated.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions