File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff 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 = / \. t s x ? $ / . 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 - z A - Z 0 - 9 ] * [ ^ > ] * > | < \/ ? [ a - z ] [ a - z 0 - 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 ) ) ;
You can’t perform that action at this time.
0 commit comments