Skip to content

Module commonjs "require.main" is undefined since v4 #2930

@zckrs

Description

@zckrs

Hi,

I try to migrate to v4 from v3.15.
I have a strange bug with project who contains some require.main

main should be a object but we got undefined.

Everything work with alpha 1 & 2 but since rc1 no success on our tests :/

I suspect usage of worker thread but I cant confirm (with option --no-worker-threads we always have bug)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions