Skip to content

[Issue] rspack appears to run out of memory and fail silenty on local and CI bundle step (large bundle size of almost 100 MB) #12086

@wongrichardalex

Description

@wongrichardalex

Hello rspack team,

We seem to be running into an issue with rspack when attempting to bundle, both locally and in CI.

Some infra info:

  • we are using Yarn
  • we are using rspack like so: "bundle:client": "cross-env TS_NODE_PROJECT="tsconfig.webpack.json" rspack --config webpack.config.client.ts -- mode production && yarn check:bundle:duplicates"
  • this particular change brings in many dependencies, but they should be either lazy loaded or in devDependencies

Both locally and in CI, this bundling step seems to just end, with logs truncated and no final message ("like rspack compiled x in y seconds")

We are operating in a pretty massive monorepo and ton of dependencies are being pulled in with this particular change that fails during bundling. The module with many deps in particular is lazy loaded, but for our relay build, we've had to include some deps in dev dependencies.

Thank you.

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