@babel/helper-check-duplicate-nodes

7.25.9 • Public • Published

@babel/helper-check-duplicate-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/helper-transform-fixture-test-runnner.

API

import checkDuplicateNodes from "@babel/helper-check-duplicate-nodes";
checkDuplicateNodes(ast);

Readme

Keywords

Package Sidebar

Install

npm i @babel/helper-check-duplicate-nodes

Weekly Downloads

1,051

Version

7.25.9

License

MIT

Unpacked Size

7.87 kB

Total Files

5

Last publish

Collaborators

  • hzoo
  • existentialism
  • nicolo-ribaudo
  • jlhwung