Skip to content

Commit 8e213bc

Browse files
fix(init): issue #162
1 parent 284ccd9 commit 8e213bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/init.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ module.exports = function(files, basePath, jspm, client, emitter) {
102102
return packagesPath + fileName + '.js';
103103
}
104104
}
105-
105+
106106
Array.prototype.unshift.apply(files,
107107
configPaths.map(function(configPath) {
108108
return createPattern(configPath)
109109
})
110110
);
111-
111+
112112
// Needed for JSPM 0.17 beta
113113
if(jspm.browser) {
114114
files.unshift(createPattern(browserPath));
@@ -139,7 +139,9 @@ module.exports = function(files, basePath, jspm, client, emitter) {
139139

140140
// Allow Karma to serve all files within jspm_packages.
141141
// This allows jspm/SystemJS to load them
142-
var jspmPattern = createServedPattern(packagesPath + '**/*', {nocache: jspm.cachePackages !== true});
142+
var jspmPattern = createServedPattern(
143+
packagesPath + '!(system-polyfills.src.js|system.src.js)/**', {nocache: jspm.cachePackages !== true}
144+
);
143145
jspmPattern.watched = false;
144146
files.push(jspmPattern);
145147
};

0 commit comments

Comments
 (0)