mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Renamed systemjs definitions file old version file. * Renamed old systemjs tests file. * Init systemjs definitions file 0.19.29 file added. * Init systemjs tests file 0.19.29 added. * normalizedParentName changed to string in SystemJS * Optimized code ant fixed some any * Fixed old version naming. * Removed `v` from version. * Updated package name in definitions file. * Added loads list. * Update systemjs.d.ts * Added old authors.
38 lines
600 B
TypeScript
38 lines
600 B
TypeScript
/// <reference path="systemjs.d.ts" />
|
|
|
|
import System = require('systemjs');
|
|
|
|
System.config({
|
|
baseURL: '/app'
|
|
});
|
|
|
|
System.import('main.js');
|
|
|
|
System.config({
|
|
// or 'traceur' or 'typescript'
|
|
transpiler: 'babel',
|
|
// or traceurOptions or typescriptOptions
|
|
babelOptions: {
|
|
|
|
}
|
|
});
|
|
|
|
|
|
System.config({
|
|
map: {
|
|
traceur: 'path/to/traceur.js'
|
|
}
|
|
});
|
|
|
|
System.transpiler = 'traceur';
|
|
|
|
|
|
// loads './app.js' from the current directory
|
|
System.import('./app.js').then(function (m) {
|
|
console.log(m);
|
|
});
|
|
|
|
System.import('lodash').then(function (_) {
|
|
console.log(_);
|
|
});
|