bootstrap.js 894 B

123456789101112131415161718192021
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. /**
  9. * @fileoverview
  10. *
  11. * This file is used to bootstrap the CLI process by dynamically importing the main initialization code.
  12. * This is done to allow the main bin file (`ng`) to remain CommonJS so that older versions of Node.js
  13. * can be checked and validated prior to the execution of the CLI. This separate bootstrap file is
  14. * needed to allow the use of a dynamic import expression without crashing older versions of Node.js that
  15. * do not support dynamic import expressions and would otherwise throw a syntax error. This bootstrap file
  16. * is required from the main bin file only after the Node.js version is determined to be in the supported
  17. * range.
  18. */
  19. import('../lib/init.js');