Skip to content

High CPU on node 15.5 / apple silicon ARM #208

Description

@samopus1io
  • Webpack Version: 4.1.0
  • Operating System (or Browser): macOS BigSur 11.1 (Apple Silicon / M1 / ARM)
  • Node Version: 15.5.0
  • webpack-plugin-serve Version: 1.2.1

Not sure if this is an issue with webpack-plugin-serve or an underlying dependency, but since switching from x86 Mac to M1 Apple Silicon Mac, webpack-plugin-serve takes high amount of CPU (+100%).

  • System trace shows its constantly scanning all the files in the repo (instead of presumably using fsevents)
  • Using HMR / http2 / waitForBuild / historyFallback options
  • No CPU issue with webpack dev server on same computer / same repo / same web pack version
  • Was able to partially work around the issue and reduce CPU usage (down to 20%) by adding watchOptions:

{ ignored: './node_modules/**', aggregateTimeout: 600, poll: 1000, };
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions