You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to resolve the path to my scss modules when using the esbuild-style-plugin plugin as a loader for scss and the esbuild-plugin-path-alias plugin to offer support for aliases using the following build script:
If one of the onResolve returned, there's no further resolver being called.
Back to your 2 plugins, the esbuild-plugin-path-alias does nothing but onResolve, then we got some absolute path like "/path/to/src/lib/style.css". However, the esbuild-style-plugin also has onResolve hook that will never be called, which in turn this plugin "not work".
So the advice is, you can re-implement the style plugin without using onResolve, like mine.
I'm unable to resolve the path to my scss modules when using the
esbuild-style-plugin
plugin as a loader for scss and theesbuild-plugin-path-alias
plugin to offer support for aliases using the following build script:Example:
esbuild-style-plugin.zip
The text was updated successfully, but these errors were encountered: