Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Add explicitResourceManagement to default TS babel config #833

@jtbandes

Description

@jtbandes

Feature request description

TypeScript 5.2 adds support for using declarations, which Babel supports via https://babeljs.io/docs/babel-plugin-proposal-explicit-resource-management

Attempting to parse a file with using syntax currently results in this error:

SyntaxError: This experimental syntax requires enabling the parser plugin: "explicitResourceManagement".

It'd be nice to add explicitResourceManagement to the default set of settings in https://github.com/depcheck/depcheck/blob/3ae0c5e2afd16ae2df88283b0fc62bbaaac72eeb/src/parser/typescript.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions