nodejs / nodejs/node

Describe alternatives to require.extensions

Open
#32,483 6 comments 17 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

deprecations module
Dominant language
JavaScript
Stars
122k
Forks
37.3k
Avg merge
4d 2h
Merged PRs (30d)
283

Description

https://nodejs.org/api/modules.html#modules_require_extensions says require.extensions is deprecated.

Per https://github.com/TypeStrong/ts-node/issues/641 and https://github.com/TypeStrong/ts-node/issues/989 there are no alternatives. They reference further the documentation of @babel/node, @babel/register, and coffeescript.

• Either re-introduce require.extensions or describe more precisely the alternatiles that should be used.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Node.js Modules API section linked in the issue and review the referenced ts-node, @babel/node, @babel/register, and CoffeeScript documentation. Document precise supported alternatives to require.extensions, or clarify the deprecation guidance if no general replacement exists; done when the section gives actionable guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, node.js
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.