-
Notifications
You must be signed in to change notification settings - Fork 9
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
Deno support #18
Comments
Why would acorn-node need changes to work with "not node"? Either way, I don't see any usage of dunder proto in this repo: https://github.com/search?q=repo%3Abrowserify%2Facorn-node%20__proto__&type=code |
the deno support is not a priority for this package but if we can do it easily by relying on more-standard features then that would be good :) just dont take it as a commitment to continued support. |
Actually maybe this is coming up because detective is using acorn-node v1, which was using a different transpiler. So the actual problem is browserify/detective#88 |
Hey @goto-bus-stop, thanks for your reply
Don't worry, I wont :) It's responsibility of Deno team to provide support for NPM packages, not the ther way around. But this is a case that not only benefits to Deno users but also Node users, since the use of
Okay, great. I didn't realize that there's a v2 for acorn-node. Looking forward to see it merged. |
It only has security issues if you're assigning object keys dynamically from untrusted input, which is not the case here. |
@goto-bus-stop I just checked the version 2 of |
FYI tailwind dropped |
Hi.
Some packages, like tailwindcss use
detective
as a dependency. Anddetective
depends onacorn-node
, a library that doesn't work on Deno because it uses the highly discouraged__proto__
object property. I've created a version ofacorn-node
replacing the__proto__
deprecated feature withObject.getPrototypeOf()
andObject.setPrototypeOf()
: https://www.npmjs.com/package/@lumeland/acorn-nodeI suggest to update
acorn-node
so it would work fine in Deno environment.FYI, I've created also a detective and tailwind temporary packages that will be deprecated if you update this package.
Thanks!
The text was updated successfully, but these errors were encountered: