Skip to content

webpack.config.ts is not compatible with Node.js v24 #7629

Open
@marco-ippolito

Description

@marco-ippolito

Bug report

What is the current behavior?

Refs: gulpjs/rechoir#49
Refs: nodejs/node#57298

Since rechoir is relying on the deprecated field require.extensions, with Node.js v24 having native typescript support, it will not load the typescript loader (ts-node etc...) and use type stripping which might support different syntax.

If the current behavior is a bug, please provide the steps to reproduce.

https://github.com/hardfist/webpack-ts-break

What is the expected behavior?

It should not rely on require.extensions to check if the typescript loader is enabled.

Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions