michalkvasnicak / babel-plugin-css-modules-transform

Extract css class names from required css module files, so we can render it on server.
MIT License
326 stars 54 forks source link

"in" operator fails upon use of "resolve" option #86

Closed brasslaguna closed 6 years ago

brasslaguna commented 6 years ago

Hey @michalkvasnicak. It seems an error is thrown in options_resolvers/resolve.js because the prop is not a string preceding the "in" operator:

if (alias in value && !isPlainObject(value.alias)) {
        throw new Error(`Configuration 'resolve.alias' is not an object`);
}

Props are "alias", "extensions", "modules", "mainFile", and "preserveSymlinks"