Skip to content

Commit

Permalink
wildcard paths deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed May 10, 2016
1 parent 6181837 commit e5dc669
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/core.js
Expand Up @@ -345,6 +345,13 @@ SystemJSLoader.prototype.config = function(cfg, isEnvConfig) {
extend(loader.paths, cfg.browserConfig && envModule.browser && cfg.browserConfig.paths);
extend(loader.paths, cfg.nodeConfig && envModule.node && cfg.nodeConfig.paths);
extend(loader.paths, cfg.productionConfig && envModule.production && cfg.browserConfig.paths);

// warn on wildcard path deprecations
if (this.warnings) {
for (var p in loader.paths)
if (p.indexOf('*') != -1)
warn.call(loader, 'Paths configuration "' + p + '" -> "' + loader.paths[p] + '" uses wildcards which are being deprecated for simpler trailing "/" folder paths.');
}
}

if (cfg.defaultJSExtensions) {
Expand Down

0 comments on commit e5dc669

Please sign in to comment.