mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
14 lines
400 B
JavaScript
14 lines
400 B
JavaScript
import { global, isBrowser, isWorker } from './common.js';
|
|
import SystemJSLoader from './systemjs-loader.js';
|
|
|
|
SystemJSLoader.prototype.version = VERSION;
|
|
|
|
var System = new SystemJSLoader();
|
|
|
|
// only set the global System on the global in browsers
|
|
if (isBrowser || isWorker)
|
|
global.SystemJS = global.System = System;
|
|
|
|
if (typeof module !== 'undefined' && module.exports)
|
|
module.exports = System;
|