MCPcopy Index your code
hub / github.com/react/react / createEnvironmentHash

Function createEnvironmentHash

fixtures/flight/config/webpack.config.js:31–36  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

29const {WebpackManifestPlugin} = require('webpack-manifest-plugin');
30
31function createEnvironmentHash(env) {
32 const hash = createHash('md5');
33 hash.update(JSON.stringify(env));
34
35 return hash.digest('hex');
36}
37
38// Source maps are resource heavy and can cause out of memory issue for large source files.
39const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';

Callers 1

webpack.config.jsFile · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected