mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
conditional build support
This commit is contained in:
parent
b0c7f89015
commit
ff3e899cb1
@ -58,6 +58,10 @@
|
||||
|
||||
return Promise.resolve(normalize.apply(this, arguments))
|
||||
.then(function(normalized) {
|
||||
// let builder handle conditional interpolation when tracing
|
||||
if (loader.builder)
|
||||
return normalized;
|
||||
|
||||
var conditionalMatch = normalized.match(conditionalRegEx);
|
||||
if (!conditionalMatch)
|
||||
return normalized;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user