css-modules / postcss-icss-values

Pass arbitrary constants between your module files
MIT License
203 stars 18 forks source link

plugin doesn't keep source information intact #90

Open joscha opened 7 years ago

joscha commented 7 years ago

I am trying to write a stylelint rule for variables that are interpreted by this plugin. For this purpose I pass postcss-modules-values as a preceeding plugin to the stylelint processor, however the AST this plugin returns does not seem to contain the initial (or transformed) position information (line/index) any more. Is there any way I can access this information?

muzea commented 6 years ago

I also have this problem, is there a solution now?