EightfoldAI / octuple

The Octuple component library
MIT License
16 stars 45 forks source link

Optimizing Optimized Octuple #850

Open aglenn-hsi opened 2 weeks ago

aglenn-hsi commented 2 weeks ago

We’re having problems with having the library arrive optimized. Have others got this to work with optimization in webpack? We are importing the react components into our code to use and it is already optimized. When we then try to optimize our stuff that already has optimized Octuple mixed in, we have the issue:

SyntaxError: Invalid or unexpected token (at main.056c8b10a2982079b320.js:2:1154427)

The offending stuff appears to be this, which looks like invalid object keys:

Wt({À:"A",Ã<81>:"A",Â:"A",Ã:"A",Ä:"A",Ã…:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ç:"C",ç:"c",Ã<90>:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",ÃŒ:"I",Ã<8d>:"I",ÃŽ:"I",Ã<8f>:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ã’:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ãœ:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã<9d>:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ä€:"A",Ä‚:"A",Ä„:"A",Ä<81>:"a",ă:"a",Ä…:"a",Ć:"C",Ĉ:"C",ÄŠ:"C",ÄŒ:"C",ć:"c",ĉ:"c",Ä‹:"c",Ä<8d>:"c",ÄŽ:"D",Ä<90>:"D",Ä<8f>:"d",Ä‘:"d",Ä’:"E",Ä”:"E",Ä–:"E",Ę:"E",Äš:"E",Ä“:"e",Ä•:"e",Ä—:"e",Ä™:"e",Ä›:"e",Äœ:"G",Äž:"G",Ä :"G",Ä¢:"G",Ä<9d>:"g",ÄŸ:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",Ä°:"I",Ä©:"i",Ä«:"i",Ä­:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å<81>:"L",ĺ:"l",ļ:"l",ľ:"l",Å€:"l",Å‚:"l",Ń:"N",Å…:"N",Ň:"N",ÅŠ:"N",Å„:"n",ņ:"n",ň:"n",Å‹:"n",ÅŒ:"O",ÅŽ:"O",Å<90>:"O",Å<8d>:"o",Å<8f>:"o",Å‘:"o",Å”:"R",Å–:"R",Ř:"R",Å•:"r",Å—:"r",Å™:"r",Åš:"S",Åœ:"S",Åž:"S",Å :"S",Å›:"s",Å<9d>:"s",ÅŸ:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Å°:"U",Ų:"U",Å©:"u",Å«:"u",Å­:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å’:"Oe",Å“:"oe",ʼn:"'n",Å¿:"s"})

aglenn-hsi commented 2 weeks ago

The only place I see a Wt in the non-optimized build is the one line string of optimized Octuple