systemjs/test/tests/worker.js
Matthew Phillips 11d51443b2 Allows SystemJS to load within Web Workers
This adds support for web workers building on the work done in ES6
Module Loader. Mostly just window checks, did have to do a plain old
eval in this case. Fixes #165
2014-08-16 13:46:45 -04:00

15 lines
374 B
JavaScript

importScripts('../../bower_components/traceur/traceur.js',
'../../bower_components/es6-module-loader/dist/es6-module-loader.js',
'../../dist/system.js');
System.baseURL = '../';
System.import('tests/es6-and-amd').then(function(m) {
postMessage({
amd: m.amd_module,
es6: m.es6_module
});
}, function(err) {
console.error(err);
});