postcss-custom-properties
postcss-custom-properties copied to clipboard
`importFrom` should support ESM
Looking at the docs, exportTo
supports exporting a ESM module if the file ends with .mjs
.
However importFrom
doesn't seem to support importing .mjs
files (https://github.com/postcss/postcss-custom-properties/blob/9b46ae805605842cfa3b0c2f8f8b4dd1c8c88dce/src/lib/get-custom-properties-from-imports.js#L85).
Fixed as of 12.1.0
Note : only works when executing postcss from a module context.