Skip to content

Feature request: Deno compatibility #1110

Open
@kt3k

Description

@kt3k

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>
...

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions