Added resolve option to plugin