0% found this document useful (0 votes)
39 views1 page

Index

This JavaScript code checks the NODE_ENV environment variable to determine whether to export the React production or development module. If NODE_ENV is set to "production", the minified production module is exported, otherwise the unminified development module is exported.

Uploaded by

pankerbest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Index

This JavaScript code checks the NODE_ENV environment variable to determine whether to export the React production or development module. If NODE_ENV is set to "production", the minified production module is exported, otherwise the unminified development module is exported.

Uploaded by

pankerbest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

'use strict';

if (process.env.NODE_ENV === 'production') {


module.exports = require('./cjs/react.production.min.js');
} else {
module.exports = require('./cjs/react.development.js');
}

You might also like