DefinitelyTyped/systemjs/systemjs-tests.ts
Giedrius Grabauskas 66999f382f Updated: SystemJS v0.19.29 definitions (#9525)
* 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.
2016-06-08 19:14:55 +09:00

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(_);
});