Next.js: Very unperformanced CaseSensitivePathsPlugin.

Created on 7 Apr 2019  路  6Comments  路  Source: vercel/next.js

Bug report

Describe the bug

Very slow building time using npm run dev. CaseSensitivePathsPlugin takes a significant time to proceed.

Fast machine Core i7
SMP

Laptop Pentium
SMP

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Install SMP to detect the time
  2. Wrap the config with new SpeedMeasurePlugin().wrap(config)
  3. run npm run dev
  4. See the screenshot above

Expected behavior

The first plugin took a lot of time to execute. Should not be a issue in every repo.

System information

  • OS: Windows
  • Version of Next.js: [ 8.0.3]

Additional context

The issue could be caused by aliases, but no time to check.

Most helpful comment

8.0.4 doesn't have CaseSensitivePathsPlugin for this reason.

All 6 comments

I've tested this plugin with { debug: true } and found that it's checking all of the modules including node_modules, so it does 2k+ reads every time

[CaseSensitivePathsPlugin] Total filesystem reads: 2566

8.0.4 doesn't have CaseSensitivePathsPlugin for this reason.

Speed measure plugin looks nice btw, hadn't seen it before 馃挴

Speed measure plugin looks nice btw, hadn't seen it before 馃挴

Could you include this measure, btw? The thing is when I wrap it, it breaks further work: next.js does not render anything and a browser does not open the app.

So, to measure I need to enable it, then disable to test is app loading ok. I think, the reason is SMP is not a plugin, but a config wrapper

@timneutkens
After installing next 8.0.4
I've caught the SMP output (via ScreenToGif), cause you clear the console output xD.
img

Thanks!

馃檹

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knipferrc picture knipferrc  路  3Comments

renatorib picture renatorib  路  3Comments

pie6k picture pie6k  路  3Comments

olifante picture olifante  路  3Comments

jesselee34 picture jesselee34  路  3Comments