madskristensen / BundlerMinifier

Visual Studio extension
Other
615 stars 172 forks source link

Error Expected identifier: typeof #565

Open rajeshayalloor opened 3 years ago

rajeshayalloor commented 3 years ago

Installed product versions

//Below is the code var fetchLookupForNewWarehouse = function (async) { async = typeof async === "undefined";

Steps to recreate

Rebuild solution

Current behavior

comment out the portion in bundleconfig.json . rebuild several times

Expected behavior

Should not throw this error. It happens with 3 files in our solutions. several people tried and no solution.

rajeshayalloor commented 3 years ago

BundlerMinifer works fine when the below code was commented out. //async = typeof async === "undefined";

Looks like the tool does not recognize this syntax.