mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4b2cbc0334
Note: `--require` does not work for ESM. `--import` does not exist in the current Node versions. Started being available in NodeJS v19. A custom entry-point script, already supported by dev-infra, simplifies the whole logic and solves the ESM case. PR Close #48521
11 lines
269 B
TypeScript
11 lines
269 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
(global as any).isNode = true;
|
|
(global as any).isBrowser = false;
|