martonlederer / esbuild-plugin-postcss2

Use postcss with esbuild
MIT License
33 stars 19 forks source link

Fix resolve path error #32

Open baurine opened 2 years ago

baurine commented 2 years ago

This PR is cherry-pick from: https://github.com/baurine/esbuild-plugin-postcss3/pull/4

What did:

Use resolve npm package instead of resolve-file npm package to resolve the import path, this can fix the 2 below bugs:

The root reason I have reported to resolve-file repo in https://github.com/doowb/resolve-file/issues/2#issuecomment-985319132

fragsalat commented 2 years ago

I would recommend you to switch to the esbuild-style-plugin. It's maintained and working in this regards