nuxt-swc
nuxt-swc copied to clipboard
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-swc
Add nuxt-swc
to buildModules
in nuxt.config
:
// nuxt.config
export default {
buildModules: [
'nuxt-swc'
]
}
Alternatives
📑 License
MIT License