Accept both esnext and configPath options

Fixes #47 
just throw a normal error `new Error()`