[fix] includes could be undefined onresolve
[fix] resource dublicate if ../ contains in path