Optional Chaining Support for Acorn
Purpose of this fork
This fork exists to enable compatibility with rollup 2.x. This will be deprecated and archived once compatibility is merged upstream.
This module provides a plugin which extends the Acorn
Parser class to handle optional chaining:
import * as acorn from 'acorn'; import optionalChaining from 'acorn-optional-chaining'; acorn.Parser.extend(optionalChaining).parse('a?.b?.c');
This plugin is released under an MIT License.
It was based off the structure of