-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@angular-devkit/build-angular): avoid in-memory prerendering ESM …
…loader errors The in-memory ESM loader hooks have been adjusted to avoid potential errors when resolving and loading the bundled server code during prerendering. These errors could result in hard to diagnose build failures. E2E testing via the deprecated protractor builder, would silently exit, for instance. To ensure on disk files including node modules are resolved from the workspace root, a virtual file root is used for all in memory files. This path does not actually exist but is used to overlay the in memory files with the actual filesystem for resolution purposes. A custom URL schema (such as `memory://`) cannot be used for the resolve output because the in-memory files may use `import.meta.url` in ways that assume a file URL. `createRequire` from the Node.js `module` builtin is one example of this usage. (cherry picked from commit f06a760)
- Loading branch information
1 parent
92fc730
commit b182be8
Showing
3 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters