Added 'basePath' param for compilation