Skip to content

require.undef() recursive undefined require, module and exports #128

@kitsonk

Description

@kitsonk

Bug

Using require.undef() with the recursive flag un-defines some fundamental modules that shouldn't be undefined.

Code

require.undef('some/mid', true);

define([ 'require', 'module', 'exports' ], (require, module, exports) => { /* ... */ });

Expected behavior:

Works without error.

Actual behavior:

Receive errors about "unable to load module require from parent..."

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions