Home / Function/ main() — react Function Reference

main() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  34173ba0_7726_7640_e18e_5b169adecc03["main()"]
  a0ac3d60_7bc6_e9d7_326a_fe19c16ed7a3["build.js"]
  34173ba0_7726_7640_e18e_5b169adecc03 -->|defined in| a0ac3d60_7bc6_e9d7_326a_fe19c16ed7a3
  style 34173ba0_7726_7640_e18e_5b169adecc03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-extensions/firefox/build.js lines 8–33

const main = async () => {
  await build('firefox');

  console.log(chalk.green('\nThe Firefox extension has been built!'));
  console.log(chalk.green('You can test this build by running:'));
  console.log(chalk.gray('\n# From the react-devtools root directory:'));
  console.log('yarn run test:firefox');
  console.log(
    chalk.gray('\n# You can also test against upcoming Firefox releases.')
  );
  console.log(
    chalk.gray(
      '# First download a release from https://www.mozilla.org/en-US/firefox/channel/desktop/'
    )
  );
  console.log(
    chalk.gray(
      '# And then tell web-ext which release to use (eg firefoxdeveloperedition, nightly, beta):'
    )
  );
  console.log('WEB_EXT_FIREFOX=nightly yarn run test:firefox');
  console.log(chalk.gray('\n# You can test against older versions too:'));
  console.log(
    'WEB_EXT_FIREFOX=/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin yarn run test:firefox'
  );
};

Domain

Subdomains

Frequently Asked Questions

What does main() do?
main() is a function in the react codebase, defined in packages/react-devtools-extensions/firefox/build.js.
Where is main() defined?
main() is defined in packages/react-devtools-extensions/firefox/build.js at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free