Blazor.Polyfill icon indicating copy to clipboard operation
Blazor.Polyfill copied to clipboard

Babel crashes during transpiling Regex in .NET 8

Open yodasad opened this issue 1 year ago • 1 comments

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'

yodasad avatar Apr 17 '24 04:04 yodasad

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 ?

Daddoon avatar Apr 24 '24 16:04 Daddoon