Home / Function/ postProcess() — react Function Reference

postProcess() — react Function Reference

Architecture documentation for the postProcess() function in build.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  abc03ef7_2a84_bb24_7242_3af05545235d["postProcess()"]
  67a0a2e0_bd49_0c73_8f90_c9d35aa3cb60["build.js"]
  abc03ef7_2a84_bb24_7242_3af05545235d -->|defined in| 67a0a2e0_bd49_0c73_8f90_c9d35aa3cb60
  b8a74eb6_bc15_fef1_125a_c2ace8297b67["main()"]
  b8a74eb6_bc15_fef1_125a_c2ace8297b67 -->|calls| abc03ef7_2a84_bb24_7242_3af05545235d
  style abc03ef7_2a84_bb24_7242_3af05545235d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/build.js lines 136–153

const postProcess = async (tempPath, destinationPath, webpackStatsFilePath) => {
  const unpackedSourcePath = join(tempPath, 'zip');
  const packedSourcePath = join(tempPath, 'ReactDevTools.zip');
  const packedDestPath = join(destinationPath, 'ReactDevTools.zip');
  const unpackedDestPath = join(destinationPath, 'unpacked');

  await move(unpackedSourcePath, unpackedDestPath); // Copy built files to destination
  await move(packedSourcePath, packedDestPath); // Copy built files to destination
  if (webpackStatsFilePath !== null) {
    await move(
      webpackStatsFilePath,
      join(destinationPath, basename(webpackStatsFilePath)),
    );
  } else {
    console.log('No webpack-stats.json file was generated.');
  }
  await remove(tempPath); // Clean up temp directory and files
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does postProcess() do?
postProcess() is a function in the react codebase, defined in packages/react-devtools-extensions/build.js.
Where is postProcess() defined?
postProcess() is defined in packages/react-devtools-extensions/build.js at line 136.
What calls postProcess()?
postProcess() is called by 1 function(s): main.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free