mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Prevent duplicate compile
This commit is contained in:
parent
c5252f0409
commit
4c206967ad
@ -29,6 +29,8 @@ function compile(path) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
found[path] = true;
|
||||||
|
|
||||||
var deferred = raptorPromises.defer();
|
var deferred = raptorPromises.defer();
|
||||||
|
|
||||||
var outPath = path + '.js';
|
var outPath = path + '.js';
|
||||||
@ -72,7 +74,6 @@ globPatterns.forEach(function(globPattern) {
|
|||||||
promises.push(deferred.promise);
|
promises.push(deferred.promise);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('Promises: ', promises.length);
|
|
||||||
raptorPromises.all(promises).then(
|
raptorPromises.all(promises).then(
|
||||||
function() {
|
function() {
|
||||||
console.log('Done!');
|
console.log('Done!');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user