swc-loader
swc-loader copied to clipboard
[Bug] Unable to pass custom options via swc-loader
Issue
Unable to pass custom options via swc-loader. (see below).
Config
{
loader: require.resolve("swc-loader"),
options: {
jsc: {
baseUrl: "src",
paths: {
"@services/*": ["services/*"],
"@i18n": ["i18n"],
},
},
},
}
Expected result
- Able to pass
baseUrlviaswc-loader
Actual result
- Unable to override
baseUrlwith webpack'sswc-loader
Repository for reproducing issue
https://github.com/cheuksing/swc-loader-issue-demo
How to start Reproducing Repo
- install deps via
yarn install - See the repo's
README.md
Is there currently any work around for this?
@jonniedarko You can remove .swcrc