css-modules / postcss-modules-values

Pass arbitrary constants between your module files
ISC License
38 stars 6 forks source link

A PostCSS plugin did not pass the `from` option to `postcss.parse`. #40

Open kkkisme opened 11 months ago

kkkisme commented 11 months ago

when use postcss@8.4.23 and this plugin , will show below warning message:

A PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.
kevinkace commented 7 months ago

I'm using postcss-modules-values with SvelteKit, and seeing this error as well as values not importing correctly from other files.

/* global.css */
@value testColor: red;
/* +layout.svelte */
@value testColor from "../global.css";
.header {
    background-color: testColor;
}

image