Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(babel-parser): avoid state.clone() to clone the whole token store (…
…#11029) * fix(babel-parser): avoid state.clone() to clone the whole token store Fixed the performance issue on large input when turned on option {tokens: true} and typescript plugin which uses quite a few state.clone(). * test(babel-parser): turn on 2 typescript tests with tokens:true The output.json is generated by old master to make sure no regression. * fix(babel-parser): avoid duplicated tokens trapped by mainly typescript/flow plugins * test(babel-parser): update output.json to latest master result * chore(babel-parser): improve performance by storing tokensLength in state
- Loading branch information
Showing
11 changed files
with
1,455 additions
and
514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
...bel-parser/test/fixtures/typescript/arrow-function/async-generic-tokens-true/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["typescript"], | ||
"tokens": true | ||
} |
Oops, something went wrong.