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

Feature request: Deno compatibility #1110

Open
kt3k opened this issue Jan 20, 2025 · 0 comments · May be fixed by #1111
Open

Feature request: Deno compatibility #1110

kt3k opened this issue Jan 20, 2025 · 0 comments · May be fixed by #1111

Comments

@kt3k
Copy link

kt3k commented Jan 20, 2025

Currently the compatibility with Deno is blocked by chalk dependency, which uses __proto__ https://github.com/chalk/chalk/blob/v2.4.2/index.js#L154, which Deno disables by default.

Deno made a conscious decision to not support Object.prototype.__proto__ for security reasons.
https://docs.deno.com/runtime/reference/cli/unstable_flags/#--unstable-unsafe-proto

You can check that with the below:

$ deno -A npm:@vscode/vsce -h
error: Uncaught (in promise) TypeError: chalk_1.default.bgGreen.black is not a function

Deno optionally supports --unstable-unsafe-proto flag which allows the use of __proto__, and that makes vsce work in Deno:

$ deno -A --unstable-unsafe-proto npm:@vscode/vsce -h
Usage: vsce <command>
...
@kt3k kt3k linked a pull request Jan 20, 2025 that will close this issue
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