2016-08-30 17:17:37 -04:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
|
|
|
(function(global: any) {
|
|
|
|
|
|
|
|
writeScriptTag('/all/benchmarks/vendor/core.js');
|
|
|
|
writeScriptTag('/all/benchmarks/vendor/system.src.js', 'benchmarksBootstrap()');
|
|
|
|
|
|
|
|
(<any>global).benchmarksBootstrap = benchmarksBootstrap;
|
|
|
|
|
|
|
|
function benchmarksBootstrap() {
|
2016-09-01 13:31:31 -04:00
|
|
|
System.config({
|
|
|
|
defaultJSExtensions: true,
|
|
|
|
map: {'incremental-dom': '/all/benchmarks/vendor/incremental-dom-cjs.js'}
|
|
|
|
});
|
2016-08-30 17:17:37 -04:00
|
|
|
|
|
|
|
// BOOTSTRAP the app!
|
2016-10-04 19:27:45 -04:00
|
|
|
System.import('index').then(function(m: any) {
|
|
|
|
m.main && m.main();
|
|
|
|
}, console.error.bind(console));
|
2016-08-30 17:17:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
function writeScriptTag(scriptUrl: string, onload?: string) {
|
|
|
|
document.write(`<script src="${scriptUrl}" onload="${onload}"></script>`);
|
|
|
|
}
|
|
|
|
}(window));
|