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;
|
||||
}
|
||||
|
||||
found[path] = true;
|
||||
|
||||
var deferred = raptorPromises.defer();
|
||||
|
||||
var outPath = path + '.js';
|
||||
@ -72,7 +74,6 @@ globPatterns.forEach(function(globPattern) {
|
||||
promises.push(deferred.promise);
|
||||
});
|
||||
|
||||
console.log('Promises: ', promises.length);
|
||||
raptorPromises.all(promises).then(
|
||||
function() {
|
||||
console.log('Done!');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user