File tree Expand file tree Collapse file tree 5 files changed +169
-160
lines changed Expand file tree Collapse file tree 5 files changed +169
-160
lines changed Original file line number Diff line number Diff line change 77 "node": true,
88 "jest": true
99 },
10- "extends": "eslint:recommended"
10+ "extends": [ "eslint:recommended", "prettier"]
1111}
Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file.
44This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
55
6+ ## [ 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
7+
8+ ### Fixes
9+
10+ - compatibility with other plugins
11+
612## [ 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
713
814### Fixes
Original file line number Diff line number Diff line change 11{
22 "name" : " postcss-modules-values" ,
3- "version" : " 4.0.0-rc.4 " ,
3+ "version" : " 4.0.0-rc.5 " ,
44 "description" : " PostCSS plugin for CSS Modules to pass arbitrary values between your module files" ,
55 "main" : " src/index.js" ,
66 "files" : [
3838 "devDependencies" : {
3939 "coveralls" : " ^3.1.0" ,
4040 "eslint" : " ^7.10.0" ,
41+ "eslint-config-prettier" : " ^6.12.0" ,
4142 "husky" : " ^4.3.0" ,
4243 "jest" : " ^26.5.2" ,
4344 "lint-staged" : " ^10.4.0" ,
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ module.exports = (options) => {
2020 const definitions = { } ;
2121
2222 return {
23- AtRule : {
24- value ( atRule ) {
23+ OnceExit ( root , postcss ) {
24+ root . walkAtRules ( / v a l u e / i , ( atRule ) => {
2525 const matches = atRule . params . match ( matchImports ) ;
2626
2727 if ( matches ) {
@@ -67,7 +67,6 @@ module.exports = (options) => {
6767
6868 if ( normalizedValue . length === 0 ) {
6969 result . warn ( "Invalid value definition: " + atRule . params ) ;
70-
7170 atRule . remove ( ) ;
7271
7372 return ;
@@ -86,9 +85,8 @@ module.exports = (options) => {
8685 ) ;
8786
8887 atRule . remove ( ) ;
89- } ,
90- } ,
91- OnceExit ( root , postcss ) {
88+ } ) ;
89+
9290 /* If we have no definitions, don't continue */
9391 if ( ! Object . keys ( definitions ) . length ) {
9492 return ;
You can’t perform that action at this time.
0 commit comments