Skip to content

Problems with import in webpack v5.101.0 #19779

@zdm

Description

@zdm

Bug report

What is the current behavior?

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

I have code like this:

import Class from "@namespace/package";

export default class extends Class {}

After updated to webpack v5.101.0 it throws me a run-time error, that extends operator expects function as parameter.

console.log( Class ) shows undefined value.

This problem introduced in v5.101.0, in the previous release v5.100.2 no errors detected.

I have no ides how to debug this.

Do you have any suggestions?

What is the expected behavior?

I am expecting that module will be imported and default export will be accessible.

Other relevant information:
webpack version: v5.101.0
Node.js version: v22.18.0
Operating System: Windows
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