-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.strip-typesIssues or PRs related to strip-types supportIssues or PRs related to strip-types support
Description
What is the problem this feature will solve?
Command line applications that want to load typescript configuration files should be able to detect whether the current node process is able to import typescript files to avoid an error during async import.
What is the feature you are proposing to solve the problem?
Add boolean value process.features.typescript to indicate whether --experimental-strip-types is enabled.
What alternatives have you considered?
It's possible to check for the presence of --experimental-strip-types in either process.execArgv or process.env.NODE_OPTIONS, but doing so is quite cumbersome.
marco-ippolito
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.strip-typesIssues or PRs related to strip-types supportIssues or PRs related to strip-types support