Package Exports
- acorn-stage3
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (acorn-stage3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
stage 3 proposal support for Acorn
This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.
It implements support for many current and former ECMAScript stage 3 proposals; not implemented are nullish-coalescing and optional-chaining. Neither loose mode nor walk are currently supported.
- import() (ESTree) via acorn-dynamic-import
- BigInt: Arbitrary precision integers in JavaScript (ESTree) via acorn-bigint
- Numeric Separators via acorn-numeric-separator
- import.meta via acorn-import-meta
- Class field declarations via acorn-class-fields
- Private methods and getter/setters for JavaScript classes via acorn-private-methods
- Static class features via acorn-static-class-features
- Add `export * as ns from "mod"` to Export production and Module Semantic via acorn-export-ns-from
- Logical assignments via acorn-logical-assignment
Usage
This module provides a plugin that can be used to extend the Acorn Parser class:
const {Parser} = require('acorn');
const stage3 = require('acorn-stage3');
Parser.extend(stage3).parse('100n');License
This plugin is released under an MIT License.