diff --git a/hmr-static.tsx b/hmr-static.tsx index 7c6dcef..7c72d67 100644 --- a/hmr-static.tsx +++ b/hmr-static.tsx @@ -65,7 +65,7 @@ const findNextExport =(inFile:string, inIndex=0, inLocal:Array, inForeig } else { - const members = inFile.substring(nextCharInd+1, endBracketInd); + const members = inFile.substring(nextCharInd+1, endBracketInd).replace(/\s/g, ''); members.split(",").forEach(part=> { const renamed = part.split(" as ");