Skip to content

[FEATURE] Spawn a process instead of relying on main thread #1084

@evenstensberg

Description

@evenstensberg

Is your feature request related to a problem? Please describe.
On next branch and in general webpack, we're using the thread singly to run webpack. This turns out to be a problem both earlier when trying to integrate node flag support #289 and in node v12 when trying to implement a wrapper to support the new modules declarations ( nodejs/modules#389).

Describe the solution you'd like
Implement a child-process communication when spawning webpack in order to re-run CLI when supporting nodev12 with the experimental flag (we can check node version number for a user and append flag, then re-run a fresh process)

Describe alternatives you've considered
N/A

Additional context
This would probably take some time, but is really important to the new CLI.

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