postcss-modules-values
Advanced tools
Comparing version 4.0.0-rc.4 to 4.0.0-rc.5
@@ -6,2 +6,8 @@ # Change Log | ||
## [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 | ||
@@ -8,0 +14,0 @@ |
{ | ||
"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", | ||
@@ -41,2 +41,3 @@ "main": "src/index.js", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.12.0", | ||
"husky": "^4.3.0", | ||
@@ -43,0 +44,0 @@ "jest": "^26.5.2", |
@@ -11,3 +11,3 @@ "use strict"; | ||
let importIndex = 0; | ||
let createImportedName = | ||
const createImportedName = | ||
(options && options.createImportedName) || | ||
@@ -24,4 +24,4 @@ ((importName /*, path*/) => | ||
return { | ||
AtRule: { | ||
value(atRule) { | ||
OnceExit(root, postcss) { | ||
root.walkAtRules(/value/i, (atRule) => { | ||
const matches = atRule.params.match(matchImports); | ||
@@ -72,3 +72,2 @@ | ||
result.warn("Invalid value definition: " + atRule.params); | ||
atRule.remove(); | ||
@@ -92,5 +91,4 @@ | ||
atRule.remove(); | ||
}, | ||
}, | ||
OnceExit(root, postcss) { | ||
}); | ||
/* If we have no definitions, don't continue */ | ||
@@ -97,0 +95,0 @@ if (!Object.keys(definitions).length) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9517
8
111