Replaces babel with swc using swc-loader for Nuxt.
- Faster build (see benchmarks)
- Typescript build (transpile-only)
This module is an experiment. Some features might be broken.
- Check comparison with babel
- Sourcemap is disabled
- Babel options
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'
]
}