DerekNonGeneric/loader339

[feature request] implement optional chaining as now has full support

DerekNonGeneric opened this issue · 1 comments

Seems like we should be using optional chaining syntax (?.) in the loader source code now that it is stage 4 and well-supported. At the time when this was written, that language feature was relatively new and not yet generally available.

See:

if (typeof original === 'function') {
module.exports.default = function() {
return original.apply(this, arguments);
};
} else {
module.exports.default = original;