From 8e213bc0f2b14bacf8dca48bf3aa7bb6f8dad281 Mon Sep 17 00:00:00 2001 From: "Marceli.no" Date: Sat, 9 Jul 2016 12:56:27 -0400 Subject: [PATCH] fix(init): issue #162 --- src/init.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/init.js b/src/init.js index 233a29b..d208f19 100644 --- a/src/init.js +++ b/src/init.js @@ -102,13 +102,13 @@ module.exports = function(files, basePath, jspm, client, emitter) { return packagesPath + fileName + '.js'; } } - + Array.prototype.unshift.apply(files, configPaths.map(function(configPath) { return createPattern(configPath) }) ); - + // Needed for JSPM 0.17 beta if(jspm.browser) { files.unshift(createPattern(browserPath)); @@ -139,7 +139,9 @@ module.exports = function(files, basePath, jspm, client, emitter) { // Allow Karma to serve all files within jspm_packages. // This allows jspm/SystemJS to load them - var jspmPattern = createServedPattern(packagesPath + '**/*', {nocache: jspm.cachePackages !== true}); + var jspmPattern = createServedPattern( + packagesPath + '!(system-polyfills.src.js|system.src.js)/**', {nocache: jspm.cachePackages !== true} + ); jspmPattern.watched = false; files.push(jspmPattern); };