You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile same coffee scripts in two different machines (Mac and Ubuntu), but the classes order in compiled file is quite different. Is there a way to workaround it? Thanks.
The text was updated successfully, but these errors were encountered:
Seems works. But as the my code size keep growing, it makes me not so comfortable that the classes orders keep changing, I have to run through more tests even I just make a tiny change. Do you know if what would be the root cause? Different node.js/npm version? or the OS? Thanks.
Is there a way to specify the file orders in toaster config file, like the "vendors" tag in config file?
And it seems that it's caused by the inconsistent result returned by fs.readdirSync. Is it possible to sort the results in toaster code when retrieves all the files?
Yes, my best guess is that it's because of the fs.readdir behavior that may change from system to system, according it's implementation.
There's no option for ordering src files, this functionality makes sense in vendors because they are third part libs and you cannot use the import directive provided by coffee toaster inside existing js files.
It's possible to sort the files tree after the first collect to normalize this, I'll check how easy it is to implement on the refactoring I'm currently working on.
I tried to compile same coffee scripts in two different machines (Mac and Ubuntu), but the classes order in compiled file is quite different. Is there a way to workaround it? Thanks.
The text was updated successfully, but these errors were encountered: