Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

acorn-import-assertions

xtuc37.1mMITdeprecated1.9.0

package has been renamed to acorn-import-attributes

Support for import assertions in acorn

readme

Support for import assertions in acorn

Usage

This module provides a plugin that can be used to extend the Acorn Parser class:

const {Parser} = require('acorn');
const {importAssertions} = require('acorn-import-assertions');
Parser.extend(importAssertions).parse('...');

License

This plugin is released under an MIT License.