mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
10 lines
269 B
TypeScript
10 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;
|