esbuild-plugin-postcss2
esbuild-plugin-postcss2 copied to clipboard
Fix resolve path error
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:
- https://github.com/martonlederer/esbuild-plugin-postcss2/issues/27
- https://github.com/evanw/esbuild/issues/1834
The root reason I have reported to resolve-file repo in https://github.com/doowb/resolve-file/issues/2#issuecomment-985319132
I would recommend you to switch to the esbuild-style-plugin. It's maintained and working in this regards