Skip to content

nuxt-contrib/nuxt-swc

Repository files navigation

nuxt-swc

npm version npm downloads license

Replaces babel with swc using swc-loader for Nuxt.

Why?

  • Faster build (see benchmarks)
  • Typescript build (transpile-only)

Current limitations

This module is an experiment. Some features might be broken.

Usage

Install nuxt-swc as devDependency of project:

yarn add --dev nuxt-swc
# or
npm i -D nuxt-swc

Add nuxt-swc to buildModules in nuxt.config:

// nuxt.config
export default {
  buildModules: [
    'nuxt-swc'
  ]
}

Alternatives

📑 License

MIT License