We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5085dd commit d0efa36Copy full SHA for d0efa36
src/generators/jsx/utils/transformer.mjs
@@ -6,11 +6,10 @@ import { TAG_TRANSFORMS } from '../constants.mjs';
6
7
/**
8
* 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.
+ * Traverses the tree and replaces any element's tagName if it exists as a key in the map.
10
*
11
* @param {Object} tree - The abstract syntax tree to transform
12
* @returns {Object} The transformed tree (modified in place)
13
- * @throws {ReferenceError} Will throw if 'tagMap' is not defined in scope
14
*/
15
export default () => tree => {
16
// TODO(@avivkeller): Nodes like "Array<string>" return a "<string>" raw type,
0 commit comments