fix(examples): Modifies web worker examples to be compatible with systemjs 0.18.10.

Adds the rx path to each respective web worker loader.

Closes #3630
This commit is contained in:
Ian Riley 2015-08-18 10:32:23 -07:00 committed by Ian Riley
parent 53df0d8b3f
commit 675cb87c76
4 changed files with 28 additions and 4 deletions

View File

@ -18,7 +18,13 @@ window = {
assert = function(){};
System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/message_broker/rx.js'
}
});
System.import("examples/src/message_broker/background_index").then(function(m){
console.log("running main");

View File

@ -15,7 +15,13 @@ assert = function() {};
importScripts("b64.js");
System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/images/rx.js'
}
});
System.import("examples/src/web_workers/images/background_index")
.then(

View File

@ -14,7 +14,13 @@ window = {
assert = function() {};
System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/kitchen_sink/rx.js'
}
});
System.import("examples/src/web_workers/kitchen_sink/background_index")
.then(

View File

@ -14,7 +14,13 @@ window = {
assert = function() {};
System.config({baseURL: '/', defaultJSExtensions: true});
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': 'examples/src/web_workers/todo/rx.js'
}
});
System.import("examples/src/web_workers/todo/background_index")
.then(