mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
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
15 lines
374 B
JavaScript
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);
|
|
});
|