Feat(WebWorker): Add WebWorker Image Filter Demo

This commit is contained in:
Jason Teplitz
2015-07-31 10:33:22 -07:00
committed by jteplitz
parent 2dcf714d2b
commit 84463cf0bd
29 changed files with 694 additions and 21 deletions

View File

@ -217,9 +217,10 @@ class CustomLanguageServiceHost implements ts.LanguageServiceHost {
* not worth the potential issues with stale cache records.
*/
getScriptSnapshot(tsFilePath: string): ts.IScriptSnapshot {
let absoluteTsFilePath = (tsFilePath == this.defaultLibFilePath) ?
tsFilePath :
path.join(this.treeInputPath, tsFilePath);
let absoluteTsFilePath =
(tsFilePath == this.defaultLibFilePath || path.isAbsolute(tsFilePath)) ?
tsFilePath :
path.join(this.treeInputPath, tsFilePath);
if (!fs.existsSync(absoluteTsFilePath)) {
// TypeScript seems to request lots of bogus paths during import path lookup and resolution,

View File

@ -65,7 +65,8 @@ const kServedPaths = [
'examples/src/material/switcher',
'examples/src/message_broker',
'examples/src/web_workers/kitchen_sink',
'examples/src/web_workers/todo'
'examples/src/web_workers/todo',
'examples/src/web_workers/images'
];
@ -129,6 +130,7 @@ module.exports = function makeBrowserTree(options, destinationPath) {
'node_modules/systemjs/lib/extension-register.js',
'node_modules/systemjs/lib/extension-cjs.js',
'node_modules/rx/dist/rx.js',
'node_modules/base64-js/lib/b64.js',
'node_modules/reflect-metadata/Reflect.js',
'tools/build/snippets/runtime_paths.js',
path.relative(projectRootDir, TRACEUR_RUNTIME_PATH)