Possible problem when chaining plugins that are resolving the paths
- Dominant language
- Go
- Stars
- 40.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
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:
```javascript
const path = require('path');
const esbuild = require('esbuild');
const esbuildStylePlugin = require('esbuild-style-plugin');
const esbuildAliasPlugin = require('esbuild-plugin-path-alias');
const config = {
entryPoints: ['./src/index.ts'],
bundle: true,
platform: 'browser',
target: 'es2020',
outdir: './dist',
logLevel: 'info',
plugins: [
esbuildAliasPlugin({
'@lib/*': path.resolve('./src/lib/'),
}),
esbuildStylePlugin(),
],
};
(async () => await esbuild.build(config))();
```
- Am I doing something wrong?
- Is this supposed to work and there is a problem in esbuild and/or the plugins
Example:
[esbuild-style-plugin.zip](https://github.com/evanw/esbuild/files/8512064/esbuild-style-plugin.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.