Skip to content

Add Cluster Module to Webpack node Configuration #5913

@knajcam

Description

@knajcam

I am trying to use a logging framework (log4js-node) within create react app however, this framework requires the node core module 'cluster'. i can only get this to work with Webpack if cluster:'empty' is added to the Webpack config, as below:

  node: {
    dgram: 'empty',
    fs: 'empty',
    net: 'empty',
    tls: 'empty',
    child_process: 'empty',
    cluster: 'empty'
  },

is it possible for this to be added?
Thank you

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