MODULES: lib1, main

STEP 0:
    libs: lib1, main
    dirty js modules: lib1, main
    dirty js files:   lib1/l1, main/f, main/m, main/m.export, main
STEP 1..2:
    libs: lib1, main
    dirty js modules: lib1
    dirty js files:   lib1/l1
STEP 3:
    libs: lib1, main
    dirty js modules: main
    dirty js files:   main/f
