Skip to content

Commit

Permalink
document api out as instable
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Oct 14, 2024
1 parent a866e3d commit 02f1d25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ added: REPLACEME
When mode is `'strip-only'`, source maps are not generated, because locations are preserved.
If `sourceMap` or `sourceUrl` is provided, when mode is `'strip-only'`, an error will be thrown.

_WARNING_: The output of this function should not be considered stable across Node.js versions,
due to changes in the TypeScript parser.

```mjs
import parser from 'node:parser';
const code = 'const a: number = 1;';
Expand Down

0 comments on commit 02f1d25

Please sign in to comment.