Skip to content

Lazy load module config#34

Open
kanongil wants to merge 1 commit intohapijs:masterfrom
kanongil:lazy-module-config
Open

Lazy load module config#34
kanongil wants to merge 1 commit intohapijs:masterfrom
kanongil:lazy-module-config

Conversation

@kanongil
Copy link
Copy Markdown
Contributor

The @babel/eslint-parser module is essentially a hard dependency, since the "module" config with a require('@babel/eslint-parser') is always loaded.

This is fixed in this PR by deferring the require() until it is first accessed. This allows it to work with code bases that use the "recommended" config along with other parsers.

@kanongil kanongil added the bug Bug or defect label Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant