babel-check-duplicated-nodes

1.0.0 • Public • Published

babel-check-duplicated-nodes

Duplicated AST nodes often lead to obscure bugs. This module checks your AST and throws a helpful error if you include a duplicated node in your output. It's useful when authoring babel transforms.

This piece of code was originally written by @nicolo-ribaudo and is included in babel's codebase.

API

checkDuplicatedNodes(babel, ast)

Readme

Keywords

Package Sidebar

Install

npm i babel-check-duplicated-nodes

Weekly Downloads

611

Version

1.0.0

License

MIT

Unpacked Size

3.13 kB

Total Files

3

Last publish

Collaborators

  • andarist