JSPM

acorn-import-meta

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46759
  • Score
    100M100P100Q15359F
  • License MIT

Support for import.meta in acorn

Package Exports

  • acorn-import-meta

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-import-meta) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Support for import.meta in Acorn

NPM version

This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for import.meta as defined in the corresponding stage 3 proposal. The emitted AST follows ESTree.

Usage

This module provides a plugin that extends the Acorn Parser class:

var acorn = require('acorn');
var importMeta = require('acorn-import-meta');
acorn.Parser.extend(importMeta).parse('console.log(import.meta.url)');

License

This plugin is released under an MIT License.