Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

importFrom should support ESM #255

Open
scinos opened this issue Sep 17, 2021 · 2 comments · Fixed by csstools/postcss-plugins#139
Open

importFrom should support ESM #255

scinos opened this issue Sep 17, 2021 · 2 comments · Fixed by csstools/postcss-plugins#139

Comments

@scinos
Copy link

scinos commented Sep 17, 2021

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 (

).

@Antonio-Laguna
Copy link
Contributor

Fixed as of 12.1.0

@romainmenke
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants