1.0.0 • Published 6 years ago

babel-check-duplicated-nodes v1.0.0

Weekly downloads
17,004
License
MIT
Repository
github
Last release
6 years ago

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)