Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: devtool extremely slow with @remixicon/react #9137

Closed
dave-dashbio opened this issue Jan 28, 2025 · 2 comments · Fixed by web-infra-dev/rspack-sources#156
Closed

[Bug]: devtool extremely slow with @remixicon/react #9137

dave-dashbio opened this issue Jan 28, 2025 · 2 comments · Fixed by web-infra-dev/rspack-sources#156
Assignees
Labels
bug Something isn't working

Comments

@dave-dashbio
Copy link

System Info

  System:
    OS: macOS 14.4
    CPU: (12) arm64 Apple M3 Pro
    Memory: 70.66 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - /usr/local/bin/node
    npm: 10.8.1 - /usr/local/bin/npm
    pnpm: 9.6.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 132.0.6834.111
    Safari: 17.4
  npmPackages:
    @rspack/cli: ^1.2.2 => 1.2.2
    @rspack/core: ^1.2.2 => 1.2.2

(Same issue in a Linux docker container as well.)

Details

rspack has been fantastic so far! However, I ran into an issue once I tried importing from @remixicon/react. The dev server startup speed grinds to an extremely slow ~40s (but HMR is fast afterwards).

I stripped it down to a minimal repo. My rspack.config.cjs is:

const { defineConfig } = require("@rspack/cli");

module.exports = defineConfig({
	context: __dirname,
	entry: "./main.js",
	devtool: "eval-source-map"
});

And main.js is simply:

import { RiHeartFill } from "@remixicon/react";
console.log(RiHeartFill);

When I run in dev mode with rspack serve, it succeeds but incredibly slowly:

Rspack compiled successfully in 38.91 s

If I set devtool: false, it is much faster:

Rspack compiled successfully in 212 ms

Reproduce link

https://github.com/dave-dashbio/rspack-devtool-issue/tree/main

Reproduce Steps

pnpm i
pnpm dev
@dave-dashbio dave-dashbio added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jan 28, 2025
@chenjiahan chenjiahan removed the pending triage The issue/PR is currently untouched. label Feb 6, 2025
@chenjiahan
Copy link
Member

Thank you for the feedback, we will fix this performance issue soon

@dave-dashbio
Copy link
Author

Thanks so much for fixing this. It's super snappy now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants