nuxt-swc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-swc

Weekly Downloads

44

Version

0.1.0

License

MIT

Unpacked Size

7.32 kB

Total Files

6

Last publish

Collaborators

  • pi0