jupiterjs/steal — Issue #48: production version created during multi build fails sporadically
Author: dimaf
Created: 2011-10-09 10:42:39+00:00
State: open

I've tried out the latest fixes in steal with multibuild support and the production version seems to depend on the order in wich 0.js, ... package files are loaded.
even so I've properly defined dependencies for the givven file, and it works ok in development build it happens that givven js file inside production.js gets "undefined" exceptions since the dependency is not available yet.
I get such exceptions almost always when browser cache is empty,i.e. when it really needs to downlaod things.

Although as mentioned in Issue 35 multibuild currently does not support CSS. So i tried in apps.js just to ignore css the similar way as you do with "fn", so they do not get included in the production.js file

```javascript
.......
for ( var d = 0; d < steel.dependencies.length; d++ ) {
var dependency = steel.dependencies[d];
if ( dependency.dependencies && dependency.options.buildType != 'fn' && dependency.options.buildType != 'css' && ! dependency.options.ignore && (typeof dependency.options.packaged === 'undefined'||dependency.options.packaged == false)) { //this dependency was actually loaded
data.dependencies[dependency.options.rootSrc] = addDependencies(dependency, files, app);
}
}
}
......
```

it seems to work ok , but now I'm not sure if by this change i may have introduced the problem described above.