0.1.0 • Published 4 years ago
nuxt-swc v0.1.0
nuxt-swc
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.
- Check comparison with babel
- Sourcemap is disabled
- Babel options
Usage
Install nuxt-swc as devDependency of project:
yarn add --dev nuxt-swc
# or
npm i -D nuxt-swcAdd nuxt-swc to buildModules in nuxt.config:
// nuxt.config
export default {
buildModules: [
'nuxt-swc'
]
}