Daddoon / Blazor.Polyfill

Blazor server-side Polyfills and fixes for Internet Explorer 11 & Edge Legacy
MIT License
120 stars 19 forks source link

Babel crashes during transpiling Regex in .NET 8 #95

Open yodasad opened 4 months ago

yodasad commented 4 months ago

It seems there are some changes in a blazor.server.js file from ASP,NET Core 8 which make old React.AspNet Babel crash during transpiling.

[ERR] : 2024-04-16T17:52:52.5005896+03:00 | 0HN2U4JDPFO6R:00000001 | On path '/_framework/blazor.server.js' - [Events success status] BeforeTransform: True, Transform: False, BeforeMinification: True, Minification: True
Error Message: Error: /blazor.server.js: Expected atom at position 3
    ^\s*Blazor-Se
       ^
   at a (React.Core.Resources.babel.generated.min.js:1:1608241) -> …….
Consider exception analysis with 'BlazorPolyfillOptions.OnES5ConvertFailure' method and prior code fixing before transform through 'BlazorPolyfillOptions.BeforeES5TransformHandler'
Daddoon commented 4 months ago

Thanks for your message !

Not sure yet when I will take some time to try to fix it. It's probably a Regex issue yes. Maybe I will take a look soon. Can't you try to do a fix and PR ?