postcss-custom-properties icon indicating copy to clipboard operation
postcss-custom-properties copied to clipboard

`importFrom` should support ESM

Open scinos opened this issue 3 years ago • 2 comments

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).

scinos avatar Sep 17 '21 06:09 scinos

Fixed as of 12.1.0

Antonio-Laguna avatar Jan 12 '22 09:01 Antonio-Laguna

Note : only works when executing postcss from a module context.

romainmenke avatar Jan 12 '22 13:01 romainmenke