- if (File.isFile(f.replace(/\.bjs$/, '.js'))) {
- olist.push(imports[f.replace(/\.bjs$/, '.js')]);
- return;
+ var js = fp.replace(/\.bjs$/, '.js');
+ if (File.isFile(js)) {
+ // check file time.. = bjs is less than compiled file..
+ if (File.mtime(fp) < File.mtime(js)) {
+ print ("LOADING" + js);
+ olist.push(imports[js]);
+ return;
+ }
+
+