Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

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

Open
cheuksing opened this issue Dec 14, 2022 · 2 comments
Open

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

cheuksing opened this issue Dec 14, 2022 · 2 comments

Comments

@cheuksing
Copy link

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 baseUrl via swc-loader

Actual result

  • Unable to override baseUrl with webpack's swc-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
@jonniedarko
Copy link

Is there currently any work around for this?

@kdy1
Copy link
Member

kdy1 commented Mar 14, 2023

@jonniedarko You can remove .swcrc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants