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:
parent
53df0d8b3f
commit
675cb87c76
@ -18,7 +18,13 @@ window = {
|
|||||||
assert = function(){};
|
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){
|
System.import("examples/src/message_broker/background_index").then(function(m){
|
||||||
console.log("running main");
|
console.log("running main");
|
||||||
|
@ -15,7 +15,13 @@ assert = function() {};
|
|||||||
importScripts("b64.js");
|
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")
|
System.import("examples/src/web_workers/images/background_index")
|
||||||
.then(
|
.then(
|
||||||
|
@ -14,7 +14,13 @@ window = {
|
|||||||
assert = function() {};
|
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")
|
System.import("examples/src/web_workers/kitchen_sink/background_index")
|
||||||
.then(
|
.then(
|
||||||
|
@ -14,7 +14,13 @@ window = {
|
|||||||
assert = function() {};
|
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")
|
System.import("examples/src/web_workers/todo/background_index")
|
||||||
.then(
|
.then(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user