Skip to content

How to turn off auto @swc/helpers alias #3711

Answered by chenjiahan
jayjliang asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

// rsbuild.config.ts
export default defineConfig({
  tools: {
    rspack(config) {
      if (config.resolve?.alias) {
        delete config.resolve.alias['@swc/helpers'];
      }
    }
  }
});

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jayjliang
Comment options

@chenjiahan
Comment options

Answer selected by chenjiahan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants