Is it possible to use extended prototype with turbopack? #66948
Unanswered
heecheon92
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I understand that extending global prototype like "Array" is an antipattern.
So for example, say I have a code like below:
After creating this file, using "removeFirst" function works just fine but when it is built with "--turbo" option,
I get a runtime error saying that "removeFirst is not a function"
Is there a workaround to be able to use the prototype extension just like I could use when I don't plug "--turbo" option?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions