babel-plugin-react-css-modules
babel-plugin-react-css-modules copied to clipboard
generateScopedName as a function
I’m trying to use generateScopedName as a function which should be possible, but it resolves as undefined
. F.ex;
generateScopedName: (localName, resourcePath) => { return 'foo' }
And then if I do console.log(typeof options.generateScopedName)
in requireCssModule
it becomes undefined. Strings works fine as the tests shows, but not functions.
+1, it should be supported as you can do it with the css-loader's modules property