babel-check-duplicated-nodes

Babel helper module for babel transforms authors to check the AST against duplicated nodes.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-check-duplicated-nodes
111.0.04 years ago4 years agoMinified + gzip package size for babel-check-duplicated-nodes in KB

Readme

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)