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

Add explicitResourceManagement to default TS babel config #833

Closed
jtbandes opened this issue Sep 7, 2023 · 0 comments · Fixed by #834
Closed

Add explicitResourceManagement to default TS babel config #833

jtbandes opened this issue Sep 7, 2023 · 0 comments · Fixed by #834
Labels

Comments

@jtbandes
Copy link
Contributor

jtbandes commented Sep 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant