nrwl / nx-labs

A collection of Nx plugins
MIT License
143 stars 50 forks source link

Add webpack's memoryLimit option to rspack's project configuration #225

Open dgmachado opened 1 year ago

dgmachado commented 1 year ago

What problem does this feature solve?

The memoryLimit option can be configured in project.json file and consumed by the Webpack. It's desirable that this option is supported by Rspack.

memoryLimit Memory limit for type checking service process in MB. (defaults to 2048).

What does the proposed API of configuration look like?

         "options": {
              ...,
              "maxWorkers": 1,
              "memoryLimit": 2048,
              "generatePackageJson": false,
              ...,
         }
sibelius commented 4 days ago

is this a webpack/rspack option ? is there any docs about it ?