babel/packages/babel-parser
Huáng Jùnliàng 94af0e5c62
Improve template tokenizing (#13919)
* add benchmarks

* refactor: tokenize template as middle + tail

* perf: avoid push tc.brace

* refactor: overwrite skipSpace in jsx plugin

* transform tl.templateMiddle/Tail

* refactor: simplify JSX context tracking

* fix flow error

* refactor: move JSX context to context.js

* fix: ensure comment stack is correctly handled

* rename createPositionFromPosition

* rename token type and methods

* add tokenIsTemplate

* refactor: merge babel 7 logic in babel7CompatTokens

* fix flow error
2021-12-06 16:43:46 -05:00
..
2021-12-06 16:43:46 -05:00
2021-12-06 16:43:46 -05:00
2018-05-19 00:03:05 -04:00
2018-05-19 00:03:05 -04:00
2021-11-16 22:37:47 +00:00

@babel/parser

A JavaScript parser

See our website @babel/parser for more information or the issues associated with this package.

Install

Using npm:

npm install --save-dev @babel/parser

or using yarn:

yarn add @babel/parser --dev