When the Worker call expression 2 parameter contains only an object literal with type: 'module' it will produce a trailing comma in the output which will result in a syntax error in some browsers such as IE11.
Input:
const hashcashWorker = new Worker('./hashcash.worker', {
type: 'module'
});
Output
const hashcashWorker = new Worker(__webpack__worker__0, );
When the Worker call expression 2 parameter contains only an object literal with
type: 'module'
it will produce a trailing comma in the output which will result in a syntax error in some browsers such as IE11.Input:
Output
Version: 4.0.2 Related to: https://github.com/angular/angular-cli/issues/17373