Skip to content

Commit

Permalink
chore(release): 4.0.0-rc.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 11, 2020
1 parent cc2ae95 commit a2801e1
Show file tree
Hide file tree
Showing 5 changed files with 169 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"node": true,
"jest": true
},
"extends": "eslint:recommended"
"extends": ["eslint:recommended", "prettier"]
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.0.0-rc.5](https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.4...v4.0.0-rc.5) - 2020-11-08

### Fixes

- compatibility with other plugins

## [4.0.0-rc.4](https://github.com/postcss-modules-local-by-default/compare/v4.0.0-rc.3...v4.0.0-rc.4) - 2020-10-08

### Fixes
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-modules-values",
"version": "4.0.0-rc.4",
"version": "4.0.0-rc.5",
"description": "PostCSS plugin for CSS Modules to pass arbitrary values between your module files",
"main": "src/index.js",
"files": [
Expand Down Expand Up @@ -38,6 +38,7 @@
"devDependencies": {
"coveralls": "^3.1.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"husky": "^4.3.0",
"jest": "^26.5.2",
"lint-staged": "^10.4.0",
Expand Down
10 changes: 4 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module.exports = (options) => {
const definitions = {};

return {
AtRule: {
value(atRule) {
OnceExit(root, postcss) {
root.walkAtRules(/value/i, (atRule) => {
const matches = atRule.params.match(matchImports);

if (matches) {
Expand Down Expand Up @@ -67,7 +67,6 @@ module.exports = (options) => {

if (normalizedValue.length === 0) {
result.warn("Invalid value definition: " + atRule.params);

atRule.remove();

return;
Expand All @@ -86,9 +85,8 @@ module.exports = (options) => {
);

atRule.remove();
},
},
OnceExit(root, postcss) {
});

/* If we have no definitions, don't continue */
if (!Object.keys(definitions).length) {
return;
Expand Down
Loading

0 comments on commit a2801e1

Please sign in to comment.