Frontend Development Experience Tricks


August 24, 2019

1. Prevent node_modules from being indexed

This is a single thing which slows Mac down by tons, especially if you’re on a corporate laptop with paranoidal-level security settings.

...
"postinstall": "touch ./.metadata_never_index"
...

2. Speed up TSC and lower it’s memory consumption.

This can be achieved by enabling TSC_WATCHFILE option with UseFsEventsWithFallbackDynamicPolling set.

export TSC_WATCHFILE="UseFsEventsWithFallbackDynamicPolling"

me
About the author

Valerii works on Office 365 and is trying to help Microsoft building future-proof products that powers the needs of the industry to make customers productive and happy. He has more than 10 years of experience in building user interfaces and user experience for various companies ranging from small startups to multi-national companies.