Skip to content

Commit d0efa36

Browse files
authored
Remove ref to tag map param
1 parent e5085dd commit d0efa36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/generators/jsx/utils/transformer.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { TAG_TRANSFORMS } from '../constants.mjs';
66

77
/**
88
* Transforms elements in a syntax tree by replacing tag names according to a mapping.
9-
* Traverses the tree and replaces any element's tagName if it exists as a key in the tagMap.
9+
* Traverses the tree and replaces any element's tagName if it exists as a key in the map.
1010
*
1111
* @param {Object} tree - The abstract syntax tree to transform
1212
* @returns {Object} The transformed tree (modified in place)
13-
* @throws {ReferenceError} Will throw if 'tagMap' is not defined in scope
1413
*/
1514
export default () => tree => {
1615
// TODO(@avivkeller): Nodes like "Array<string>" return a "<string>" raw type,

0 commit comments

Comments
 (0)