swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

[Bug] Unable to pass custom options via swc-loader #70

Open cheuksing opened 1 year ago

cheuksing commented 1 year ago

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

Actual result

Repository for reproducing issue

https://github.com/cheuksing/swc-loader-issue-demo

How to start Reproducing Repo

jonniedarko commented 1 year ago

Is there currently any work around for this?

kdy1 commented 1 year ago

@jonniedarko You can remove .swcrc