Hashnode / Hashnode/mern-starter
Server start-up takes too long to boot up.
- Dominant language
- JavaScript
- Stars
- 5.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I am facing pretty long build times on development mode, around 50-70 seconds.
I could narrow it down to notice that babel-register and babel-polyfill being required takes way too long to execute even a console statement at the start of server.js file. Any suggestions to speed up this process ? Also, i have replaced cssnext with a less loader along with post-css, but i'm guessing that shouldn't be the cause for the performance hit at server side transpiling since i have fewer .less files.
P.S.
I am running npm@3.9.6,, was thinking may be it was related to [this](https://www.reddit.com/r/javascript/comments/3u7gob/babels_poor_performance_what_im_doing_wrong/) post, but doesn't help.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at server.js and inspect where babel-register and babel-polyfill are required, then compare startup timing around those imports. Review the reported cssnext, less loader, and post-css configuration and reproduce the development-mode build with npm@3.9.6. Done means identifying the startup bottleneck and documenting or implementing a verified reduction in boot time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, build-system, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100