guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
930 stars 48 forks source link

Can not parse `export type {} from 'xxx'` #72

Closed qmhc closed 3 years ago

qmhc commented 3 years ago

When I use:

import type { Test } from './test'

export type { Test }

it can be parsed, but not:

export type { Test } from './test'
guybedford commented 3 years ago

The lexer is only designed to support JavaScript not TypeScript. If you need TypeScript support that should probably be implemented as a fork of this project as I don't want to deviate the design goals here towards that currently.

qmhc commented 3 years ago

Thanks for your reply, but I am not good at c lang, maybe I will try in the future.