Dan Abramov 8/4/2019

How Does the Development Mode Work?

Read Original

This technical article explains how JavaScript bundlers, like webpack, enable different code to run in development and production. It details how React uses development mode to include helpful warnings and checks, which are then stripped out in production builds to optimize bundle size and performance, using constants like __DEV__ or process.env.NODE_ENV.

How Does the Development Mode Work?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet