Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andarist/babel-check-duplicated-nodes
🐠 Babel helper module for transforms authors to check the AST against duplicated nodes.
https://github.com/andarist/babel-check-duplicated-nodes
babel
Last synced: 20 days ago
JSON representation
🐠 Babel helper module for transforms authors to check the AST against duplicated nodes.
- Host: GitHub
- URL: https://github.com/andarist/babel-check-duplicated-nodes
- Owner: Andarist
- Created: 2018-06-17T14:14:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T22:11:27.000Z (over 4 years ago)
- Last Synced: 2024-10-12T23:04:02.949Z (25 days ago)
- Topics: babel
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](https://github.com/babel/babel/blob/d383659ca6adec54b6054f77cdaa16da88e8a171/packages/babel-helper-transform-fixture-test-runner/src/index.js#L128).## API
```js
checkDuplicatedNodes(babel, ast)
```