Currently all playground examples are built with `tsc` and served with the `gulp serve` task. In order to be able to test these examples easily with Ivy, we now build and serve the examples using Bazel. This allows us to expand our Ivy test coverage and additionally it allows us to move forward with the overall Bazel migration. Building & serving individual examples is now very easy and doesn't involve building everything inside of `/modules`. PR Close #28490
23 lines
671 B
JavaScript
23 lines
671 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google Inc. 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
|
|
*/
|
|
|
|
/*
|
|
* Normally the "ts_devserver" bundles all specified source files into a bundle and uses
|
|
* Require.JS, but for this example we need to use SystemJS as module loader since this
|
|
* example uses lazy loading and we want to ensure that the default SystemJS factory loader
|
|
* works as expected.
|
|
*/
|
|
|
|
System.config({
|
|
packages: {
|
|
'angular/modules/playground/src/routing': {defaultExtension: 'js'},
|
|
}
|
|
});
|
|
|
|
System.import('./main.js').catch(e => console.error(e));
|