TyrealHu / acorn-typescript

Alternative, TypeScript parser
https://www.npmjs.com/package/acorn-typescript?activeTab=readme
MIT License
145 stars 18 forks source link

fix: syntax error in identifier named `as` in export and import declarations #14

Closed ota-meshi closed 1 year ago

ota-meshi commented 1 year ago

This PR fixes syntax error in identifier named as in export and import declarations

e.g.

var foo = 8;
export { foo as as };

import { as as as } from './foo.js';