postcss / postcss-load-config

Autoload Config for PostCSS
MIT License
638 stars 71 forks source link

fix: Convert paths to fix ERR_UNSUPPORTED_ESM_URL_SCHEME errors on Windows #238

Closed michael42 closed 2 years ago

michael42 commented 2 years ago

Notable Changes

Uses url.pathToFileURL when loading using await import(), because that only supports URLs. It worked coincidentally on Linux and MacOS, because they use the same path separator as URLs (/).

Commit Message Summary (CHANGELOG)

fix: Convert paths to fix ERR_UNSUPPORTED_ESM_URL_SCHEME errors on Windows

Type

SemVer

Issues

Checklist

ai commented 2 years ago

Thanks. Released in 4.0.1.