Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
kitsonk opened this issue Apr 27, 2017 · 0 comments
Closed

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

kitsonk opened this issue Apr 27, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@kitsonk
Copy link
Member

kitsonk commented Apr 27, 2017

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..."

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants