Skip to content

Commit aa0b17e

Browse files
update: fmt
1 parent d51a7b4 commit aa0b17e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

utils/custom-loaders/html-tag-jsx-loader.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function htmlTagJsxLoader(source) {
1515

1616
try {
1717
// Debug logging - verify loader is running
18-
console.log(`🔧 Custom JSX loader processing: ${this.resourcePath}\n`);
18+
// console.log(`🔧 Custom JSX loader processing: ${this.resourcePath}\n`);
1919

2020
// Determine file type from extension
2121
const isTypeScript = /\.tsx?$/.test(this.resourcePath);
@@ -24,7 +24,7 @@ module.exports = function htmlTagJsxLoader(source) {
2424
// Look for complete JSX opening tags with proper spacing
2525
const hasJSXLike =
2626
/<\/?[A-Z][a-zA-Z0-9]*[^>]*>|<\/?[a-z][a-z0-9-]*[^>]*>/.test(source);
27-
console.log(`loader :: ${this.resourcePath}`, { hasJSXLike });
27+
2828
if (!hasJSXLike) {
2929
return callback(null, source);
3030
}
@@ -230,20 +230,20 @@ module.exports = function htmlTagJsxLoader(source) {
230230
);
231231
}
232232

233-
if (id || className) {
234-
if (className) {
235-
args.push(className);
236-
} else {
237-
args.push(t.nullLiteral());
238-
}
233+
if (id || className) {
234+
if (className) {
235+
args.push(className);
236+
} else {
237+
args.push(t.nullLiteral());
238+
}
239239

240-
if (id) {
241-
args.push(id);
242-
} else if (className) {
243-
// Push null for id when we have className but no id
244-
args.push(t.nullLiteral());
240+
if (id) {
241+
args.push(id);
242+
} else if (className) {
243+
// Push null for id when we have className but no id
244+
args.push(t.nullLiteral());
245+
}
245246
}
246-
}
247247

248248
if (children.length) {
249249
args.push(t.arrayExpression(children));

0 commit comments

Comments
 (0)