Skip to content

Commit

Permalink
Add contributor info to changelog for 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
madyankin committed Jun 30, 2020
1 parent 772758d commit 51b63a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -4,7 +4,7 @@

### Changed

- [`localsConvention` option] now supports a custom function `(originalClassName: string, generatedClassName: string, inputFile: string) => className: string`
- [`localsConvention` option] now supports a custom function `(originalClassName: string, generatedClassName: string, inputFile: string) => className: string` by Gregory Waxman (@Akkuma) https://github.com/css-modules/postcss-modules/pull/109

## 3.1.0

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "postcss-modules",
"version": "3.2.0",
"version": "3.1.0",
"description": "PostCSS plugin to use CSS Modules everywhere",
"main": "build/index.js",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -90,7 +90,8 @@ module.exports = postcss.plugin(PLUGIN_NAME, (opts = {}) => {
if (out) css.prepend(out);

if (opts.localsConvention) {
const isFunc = typeof opts.localsConvention === 'function';
const isFunc = typeof opts.localsConvention === "function";

parser.exportTokens = Object.entries(parser.exportTokens).reduce(
(tokens, [className, value]) => {
if (isFunc) {
Expand Down

0 comments on commit 51b63a0

Please sign in to comment.