madskristensen / BundlerMinifier

Visual Studio extension
Other
615 stars 172 forks source link

? and ?? operators issue in JS file #577

Open zanyar3 opened 2 years ago

zanyar3 commented 2 years ago

Installed product versions

Description

When we use ? and ?? operators for check null or undefined in js file this extension not rebuild .min.js file and give us error problem.

Example

// 1)
var myVal = $('#myInput').val() ?? 0;  // .min.js file not rebuild 

// 2) var myData = {
    id: 1,
   name: 'myName'
} ;

var name = myData?.name  //  .min.js file not rebuild