mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
The global require function is not present in Node.js ESM mode. To support the eventual transition of the `@angular/cli` package to ESM, usage of the `require.resolve` function has been converted to use locally created `require` functions via `createRequire` from the `module` builtin.