Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Will swc support to Improve compile efficiency ? #6942

shao-kang started this conversation in Ideas
Discussion options

Will swc support to Improve compile efficiency ? swc is faster than babel

You must be logged in to vote

Replies: 1 comment

Comment options

Of course you can

In Vue CLI, You can do it like this👇

$ yarn add  @swc/core swc-loader -D
// .swcrc
{
  ...
}

// vue.config.js
module.exports = {
  configureWebpack: {
    module: {
      rules: [
        //  use swc-loader
        {
          test: /\.m?js$/,
          exclude: /(node_modules/,
          use: {
            loader: 'swc-loader',
          },
        },
      ],
    },
  },
}
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
💡
Ideas
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.