Open scinos opened 3 years ago
Looking at the docs, exportTo supports exporting a ESM module if the file ends with .mjs.
exportTo
.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).
importFrom
Fixed as of 12.1.0
12.1.0
Note : only works when executing postcss from a module context.
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).