Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular-devkit/build-angular): auto include `@angular/platform-…
…server/init` during server builds This changes removes the need to import `@angular/platform-server/init` in the `main.server.ts` instead we now include this as an entry-point when we are bundling as server bundle.
- Loading branch information
1 parent
a95d130
commit 979bce4
Showing
2 changed files
with
6 additions
and
8 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
8 changes: 0 additions & 8 deletions
8
packages/schematics/angular/universal/files/src/__main@stripTsExtension__.ts.template
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
/*************************************************************************************************** | ||
* Initialize the server environment - for example, adding DOM built-in types to the global scope. | ||
* | ||
* NOTE: | ||
* This import must come before any imports (direct or transitive) that rely on DOM built-ins being | ||
* available, such as `@angular/elements`. | ||
*/ | ||
import '@angular/platform-server/init'; | ||
|
||
export { <%= rootModuleClassName %> } from './app/<%= stripTsExtension(rootModuleFileName) %>'; |