Skip to content

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

Description

@DerekNonGeneric

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions