UNPKG

894 BJavaScriptView Raw
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/**
10 * @fileoverview
11 *
12 * This file is used to bootstrap the CLI process by dynamically importing the main initialization code.
13 * This is done to allow the main bin file (`ng`) to remain CommonJS so that older versions of Node.js
14 * can be checked and validated prior to the execution of the CLI. This separate bootstrap file is
15 * needed to allow the use of a dynamic import expression without crashing older versions of Node.js that
16 * do not support dynamic import expressions and would otherwise throw a syntax error. This bootstrap file
17 * is required from the main bin file only after the Node.js version is determined to be in the supported
18 * range.
19 */
20
21import('../lib/init.js');