conditional build support

This commit is contained in:
guybedford 2015-09-06 22:46:01 +02:00
parent b0c7f89015
commit ff3e899cb1

View File

@ -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;