Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

bug with require #1694

@bobrik

Description

@bobrik

I've got a strange behavior with require when in some cases require() at the beginning of the file causes undefined instead of contents of exports object. Lazy require in methods works well in that case (I really hope so).

You may see example code here: node-require-bug.

Sorry for my poor English explanation, I hope you'll see everything in example.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions