-
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.
feat(mobile): add prod build step to concatenate scripts
For projects that use the --mobile flag, this will cause all third-party polyfills and the system-loader script to be concatenated into a single file that can be loaded via an async script tag. This is necessary for App Shell to work properly, so that rendering won't be blocked on synchronous script loading. Note: this change still loads app and library files individually. Follow-up work should be done to further improve loading performance.
- Loading branch information
1 parent
cb1270f
commit 51569ce
Showing
4 changed files
with
68 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
System.import('system-config.js').then(function () { | ||
System.import('main'); | ||
}).catch(console.error.bind(console)); |
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