Skip to content

[Bug]: Since version 1.3.7, the CircularDependencyRspackPlugin has started to get stuck #10208

@mochiya98

Description

@mochiya98

System Info

System Info
  npmPackages:
    @rspack/cli: ^1.3.7 => 1.3.7 
    @rspack/core: ^1.3.7 => 1.3.7 

Details

Since version 1.3.7, the CircularDependencyRspackPlugin has started to get stuck.
It may be related to #10163.

Reproduce link

No response

Reproduce Steps

  1. install dependencies @rspack/{cli,core}@1.3.7, react, react-dom, @fluentui/react-components
  2. prepare the rspack.config.js using the CircularDependencyRspackPlugin
  3. import and use a component from @fluentui/react-components (it’s enough with console.log)
  4. executing rspack build causes it to get stuck.

rspack.config.js :

const rspack = require("@rspack/core");

module.exports = {
    entry: {
        main: './src/index.js',
    },
    plugins: [
        // fails when this plugin is present
        new rspack.CircularDependencyRspackPlugin({
            exclude: /node_modules/,
        }),
    ],
};

src/index.js :

import { Breadcrumb } from '@fluentui/react-components';
console.log(Breadcrumb);

package.json :

{
  "name": "example-app",
  "version": "1.0.0",
  "main": "dist/main.js",
  "scripts": {
    "build": "rspack build"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "devDependencies": {
    "@rspack/cli": "1.3.7",
    "@rspack/core": "1.3.7"
  },
  "dependencies": {
    "@fluentui/react-components": "9.63.0",
    "react": "18.3.1",
    "react-dom": "18.3.1"
  },
  "resolutions": {
    "react": "18.3.1",
    "react-dom": "18.3.1"
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions