trullock / NUglify

NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)
Other
396 stars 79 forks source link

export async function not correctly minified #360

Closed limsbeheer closed 1 year ago

limsbeheer commented 1 year ago

Describe the bug When exporting an async function the minified code is incorrect (using version 1.20.6)

To Reproduce See dotnetfiddle:

using System;
using static NUglify.Uglify;

public class Program
{
  public static void Main()
  {
    Console.WriteLine(Js("export async function fooAsync(){}"));
  }
}

Minified output export{async}

Expected output code export async function fooAsync(){}

limsbeheer commented 1 year ago

Thank you!