Closed karolis-sh closed 5 years ago
How do you use PostCSS?
postcss-js
shouldn’t show this warning since it doesn’t use postcss.parse()
It seems that only the async
method warns about it:
import postcssJs from "postcss-js";
postcssJs.async([])({ padding: "10px" });
Here's the demo - https://codesandbox.io/s/dreamy-jennings-xqe7t
Got it. Fixed 197c5f3
Released in 2.0.3
Hello, I'm getting warnings -
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
It seems that you can't pass the
from
option, or it should bet set toundefined
in the first place since this is supposed to be used only in the browser .